23#pragma warning(disable : 4786)
24#pragma warning(disable : 4804)
25#pragma warning(disable : 4805)
26#pragma warning(disable : 4717)
35#ifdef HAVE_MALLOPT_ARENA_MAX
50#if defined(HAVE_SYSTEM)
59 std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>,
wchar_t>()
71#ifdef HAVE_MALLOPT_ARENA_MAX
77 if (
sizeof(
void *) == 4) {
83#if !defined(WIN32) && !defined(MAC_OSX) && !defined(__FreeBSD__) && \
88 }
catch (
const std::runtime_error &) {
89 setenv(
"LC_ALL",
"C.UTF-8", 1);
112 return std::thread::hardware_concurrency();
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
void ReplaceAll(std::string &in_out, const std::string &search, const std::string &substitute)
const int64_t nStartupTime
int GetNumCores()
Return the number of cores available on the current system.
std::string ShellEscape(const std::string &arg)
int64_t GetTime()
DEPRECATED Use either ClockType::now() or Now<TimePointType>() if a cast is needed.