std::locale::global

Defined in header <locale> static locale global( const locale& loc ); Replaces the global C++ locale with loc, which means all future calls to the std::locale default constructor will now return a copy of loc. If loc has a name, also replaces the C locale as if by std::setlocale(LC_ALL, loc.name().c_str());. This function is the only way to modify the global C++ locale, which is otherwise equivalent to std::locale::classic() at program startup. Parameters loc -

std::locale::locale

Defined in header <locale> locale(); (1) locale( const locale& other ); (2) explicit locale( const char* std_name ); (3) explicit locale( const std::string& std_name ); (4) locale( const locale& other, const char* std_name, category cat ); (5) locale( const locale& other, const std::string& std_name, category cat ); (6) template< class Facet > locale( const locale& other, Facet* f ); (7) locale( const locale&a

std::locale::id

Defined in header <locale> class locale::id; The class std::locale::id provides implementation-specific identification of a locale facet. Each class derived from std::locale::facet must have a public static member of type std::locale::id and each std::locale object maintains a list of facets it implements, indexed by their ids. Facets with the same id belong to the same facet category and replace each other when added to a locale object. Member functions (constructor)

std::locale::classic

Defined in header <locale> static const locale& classic(); Obtains a reference to the C++ locale that implements the classic "C" locale semantics. This locale, unlike the global locale, cannot be altered. Parameters none. Return value Returns a reference to the "C" locale. Notes Some of the standard-required facets, such as the UTF-8/UTF-32 conversion facet std::codecvt<char32_t, char, std::mbstate_t>, have no equivalents in the "C" locale, but they are n

std::locale

Defined in header <locale> class locale; An object of class std::locale is an immutable indexed set of immutable facets. Each stream object of the C++ input/output library is associated with an std::locale object and uses its facets for parsing and formatting of all data. In addition, a locale object is associated with each std::basic_regex object. Locale objects can also be used as predicates that perform string collation with the standard containers and algorithms and can

std::locale::combine

Defined in header <locale> template< class Facet > locale combine( const locale& other ) const; Constructs a locale object which is a copy of *this except for the facet of type Facet, which is copied from other. Return value The new, nameless, locale. Exceptions std::runtime_error if other does not implement Facet. Example #include <iostream> #include <locale> int main() { const double number = 1000.25; std::cout << "\"C\" lo

std::literals::chrono_literals::operator&quot;&quot;us

Defined in header <chrono> constexpr std::chrono::microseconds operator "" us(unsigned long long us); (1) (since C++14) constexpr std::chrono::duration</*unspecified*/, std::micro> operator "" us(long double us); (2) (since C++14) Forms a std::chrono::duration literal representing microseconds. 1) integer literal, returns exactly std::chrono::microseconds(us) 2) floating-point literal, returns a floating-point duration equivalent to

std::literals::string_literals::operator&quot;&quot;s

Defined in header <string> string operator "" s(const char *str, std::size_t len); (1) (since C++14) u16string operator "" s(const char16_t *str, std::size_t len); (2) (since C++14) u32string operator "" s(const char32_t *str, std::size_t len); (3) (since C++14) wstring operator "" s(const wchar_t *str, std::size_t len); (4) (since C++14) Forms a string literal of the desired type. 1) returns std::string{str, len} 2) returns std::u16string{str, len} 3

std::literals::chrono_literals::operator&quot;&quot;s

Defined in header <chrono> constexpr chrono::seconds operator "" s(unsigned long long secs); (1) (since C++14) constexpr chrono::duration</*unspecified*/> operator "" s(long double secs); (2) (since C++14) Forms a std::chrono::duration literal representing seconds. 1) integer literal, returns exactly std::chrono::seconds(secs) 2) floating-point literal, returns a floating-point duration equivalent to std::chrono::seconds Parameters secs - the number

std::literals::complex_literals::operators

Defined in header <complex> constexpr complex<double> operator""i(long double arg); constexpr complex<double> operator""i(unsigned long long arg); (1) (since C++14) constexpr complex<float> operator""if(long double arg); constexpr complex<float> operator""if(unsigned long long arg); (2) (since C++14) constexpr complex<long double> operator""il(long double arg); constexpr complex<long double> operator""il(unsigned long long arg); (3