31 standard_locale::standard_locale()
32 : cinloc(std::cin.getloc()){
34 cloc=setlocale(LC_NUMERIC, 0);
35 setlocale(LC_NUMERIC,
"C");
39 standard_locale::~standard_locale() {
41 setlocale(LC_NUMERIC, cloc.c_str());
47 standard_locale::standard_locale()
48 : cloc(setlocale(LC_NUMERIC, 0)), cinloc(std::cin.getloc()){
49 setlocale(LC_NUMERIC,
"C"); std::cin.imbue(std::locale(
"C"));
52 standard_locale::~standard_locale(){
53 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