30 standard_locale::standard_locale()
31 : cinloc(std::cin.getloc()){
33 cloc=setlocale(LC_NUMERIC, 0);
34 setlocale(LC_NUMERIC,
"C");
38 standard_locale::~standard_locale() {
40 setlocale(LC_NUMERIC, cloc.c_str());
46 standard_locale::standard_locale()
47 : cloc(setlocale(LC_NUMERIC, 0)), cinloc(std::cin.getloc()){
48 setlocale(LC_NUMERIC,
"C"); std::cin.imbue(std::locale(
"C"));
51 standard_locale::~standard_locale(){
52 setlocale(LC_NUMERIC, cloc.c_str()); std::cin.imbue(cinloc);
thread safe standard locale with RAII semantics
Tools for multithreaded, OpenMP and Boost based parallelization.
GEneric Tool for Finite Element Methods.
bool me_is_multithreaded_now()
is the program running in the parallel section