std::geometric_distribution::max

result_type max() const; (since C++11) Returns the maximum value potentially generated by the distribution. Parameters (none). Return value The maximum value potentially generated by the distribution. Complexity Constant. See also min returns the minimum potentially generated value (public member function)

std::ispunct(std::locale)

Defined in header <locale> template< class charT > bool ispunct( charT ch, const locale& loc ); Checks if the given character is classified as an punctuation character by the given locale's std::ctype facet. Parameters ch - character loc - locale Return value Returns true if the character is classified as punctuation, false otherwise. Possible implementation template< class charT > bool ispunct( charT ch, const std::locale& loc )

std::codecvt::in

Defined in header <locale> public: result in( StateT& state, const ExternT* from, const ExternT* from_end, const ExternT*& from_next, InternT* to, InternT* to_end, InternT*& to_next ) const; (1) protected: virtual result do_in( StateT& state, const ExternT* from, const ExternT* from_end, const ExternT*& from_next,

this

Usage this pointer

std::ios_base::xalloc

static int xalloc(); Returns a unique (program-wide) index value that can be used to access one long and one void* elements in the private storage of std::ios_base by calling iword() and pword(). The call to xalloc does not allocate memory. This function is thread-safe; concurrent access by multiple threads does not result in a data race. (since C++14). Effectively increments a private static data member of std::ios_base, as if by executing return index++;, if index is the name of that

std::basic_ostringstream::swap

void swap( basic_ostringstream& other ); (since C++11) Exchanges the state of the stream with those of other. This is done by callingbasic_ostream<CharT, Traits>::swap(other) and rdbuf()->swap(*other.rdbuf()). Parameters other - stream to exchange the state with Return value (none). Example See also operator= (C++11) moves the string stream (public member function) swap (C++11) swaps two basic_stringbuf objects (public member function of st

Overload resolution

In order to compile a function call, the compiler must first perform name lookup, which, for functions, may involve argument-dependent lookup, and for function templates may be followed by template argument deduction. If these steps produce more than one candidate function, then overload resolution is performed to select the function that will actually be called. In general, the candidate function whose parameters match the arguments most closely is the one that is called. Details Before ove

sizeof operator

Queries size of the object or type. Used when actual size of the object must be known. Syntax sizeof( type ) (1) sizeof expression (2) Both versions return a constant of type std::size_t. Explanation 1) returns size in bytes of the object representation of type. 2) returns size in bytes of the object representation of the type, that would be returned by expression, if evaluated. Notes Depending on the computer architecture, a byte may consist of 8 or more bits, the exact

std::wbuffer_convert

Defined in header <locale> template<class Codecvt, class Elem = wchar_t, class Tr = std::char_traits<Elem> > class wbuffer_convert : public std::basic_streambuf<Elem, Tr> (since C++11) std::wbuffer_convert is a wrapper over stream buffer of type std::basic_streambuf<char> which gives it the appearance of std::basic_streambuf<Elem>. All I/O performed through std::wbuffer_convert undergoes character conversion as defined by the

std::wstring_convert::to_bytes

Defined in header <locale> byte_string to_bytes( Elem wchar ); (1) byte_string to_bytes( const Elem* wptr ); (2) byte_string to_bytes( const wide_string& wstr ); (3) byte_string to_bytes( const Elem* first, const Elem* last); (4) Performs wide to multibyte conversion, using the codecvt facet supplied at construction. 1) Converts wchar as if it was a string of length 1, to byte_string. 2) Converts the null-terminated wide character sequence beginning