std::complex

Defined in header <complex> template< class T > class complex; (1) template<> class complex<float>; (2) template<> class complex<double>; (3) template<> class complex<long double>; (4) The specializations std::complex<float>, std::complex<double>, and std::complex<long double> are LiteralTypes for representing and manipulating complex numbers. The effect of instantiating the template complex for a

std::common_type(std::chrono::time_point)

template <class Clock, class Duration1, class Duration2> struct common_type<std::chrono::time_point<Clock, Duration1>, std::chrono::time_point<Clock, Duration2>> { typedef std::chrono::time_point< Clock, typename std::common_type<Duration1, Duration2>::type> type; }; (since C++11) Exposes the type named type, which is the common type of two std::chrono::time_points. Notes The common type of two std::chrono::time_poin

std::common_type(std::chrono::duration)

template <class Rep1, class Period1, class Rep2, class Period2> struct common_type<std::chrono::duration<Rep1, Period1>, std::chrono::duration<Rep2, Period2>> { typedef std::chrono::duration< typename std::common_type<Rep1, Rep2>::type, /*see note*/> type; }; (since C++11) Exposes the type named type, which is the common type of two std::chrono::durations. Note The period of the resulting duration is the greatest comm

std::common_type

Defined in header <type_traits> template< class... T > struct common_type; (since C++11) Determines the common type among all types T..., that is the type all T... can be implicitly converted to. For non-specialized std::common_type, the rules for determining the common type between every pair T1, T2 are exactly the rules for determining the return type of the ternary conditional operator in unevaluated context, with arbitrary first argument of type bool and with xval

std::collate_byname

Defined in header <locale> template< class CharT > class collate_byname : public std::collate<CharT>; std::collate_byname is a std::collate facet which encapsulates locale-specific collation (comparison) and hashing of strings. Just like std::collate, it can be imbued in std::regex and applied, by means of std::locale::operator(), directly to all standard algorithms that expect a string comparison predicate. Two specializations are provided by the standard libra

std::collate::transform

Defined in header <locale> public: string_type transform( const CharT* low, const CharT* high ) const; (1) protected: virtual string_type do_transform( const CharT* low, const CharT* high ) const; (2) 1) Public member function, calls the protected virtual member function do_transform of the most derived class. 2) Converts the character sequence [low, high) to a string that, compared lexicographically (e.g. with operator< for strings) with the result of calling tr

std::collate::hash

Defined in header <locale> public: long hash( const CharT* beg, const CharT* end ) const; (1) protected: virtual long do_hash( const CharT* beg, const CharT* end ) const; (2) 1) Public member function, calls the protected virtual member function do_hash of the most derived class. 2) Converts the character sequence [beg, end) to an integer value that is equal to the hash obtained for all strings that collate equivalent in this locale (compare() returns ​0​). For two

std::collate::compare

Defined in header <locale> public: int compare( const CharT* low1, const CharT* high1, const CharT* low2, const CharT* high2 ) const; (1) protected: virtual int do_compare( const CharT* low1, const CharT* high1, const CharT* low2, const CharT* high2 ) const; (2) 1) Public member function, calls the protected virtual member function do_compare of the most derived class. 2) Compares the character sequence [low1, high1) to the chara

std::collate::collate

Defined in header <locale> explicit collate( std::size_t refs = 0 ); Creates a std::collate facet and forwards the starting reference count refs to the base class constructor, locale::facet::facet(). Parameters refs - starting reference count

std::collate

Defined in header <locale> template< class CharT > class collate; Class std::collate encapsulates locale-specific collation (comparison) and hashing of strings. This facet is used by std::basic_regex and can be applied, by means of std::locale::operator(), directly to all standard algorithms that expect a string comparison predicate. Inheritance diagram. Two standalone (locale-independent) specializations are provided by the standard library: Defined in header