std::basic_fstream::swap

void swap( basic_fstream& other ); (since C++11) Exchanges the state of the stream with those of other. This is done by calling basic_iostream<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 file stream (public member function) swap (C++11) swaps two basic_filebuf objects (public member function of std::basic_

std::ctype&lt;char&gt;::scan_is

Defined in header <locale> const char* scan_not (mask m, const char* beg, const char* end) const; (1) Locates the first character in the character array [beg, end) that does not satisfy the classification mask m, that is, the first character c such that table()[(unsigned char)c] & m would return false. If (unsigned char)c >= std::ctype<char>::table_size, then an implementation-defined value is substituted instead of table()[(unsigned char)c], possibly different

std::ldexp

Defined in header <cmath> float ldexp( float x, int exp ); (1) double ldexp( double x, int exp ); (2) long double ldexp( long double x, int exp ); (3) double ldexp( Integral x, int exp ); (4) (since C++11) 1-3) Multiplies a floating point value x by the number 2 raised to the exp power. 4) A set of overloads or a function template accepting an argument of any integral type. Equivalent to (2) (the argument is cast to double). Parameters

const_cast

Usage const_cast type conversion expression: as the declaration of the expression

std::bad_array_new_length

Defined in header <new> class bad_array_new_length; (since C++11) std::bad_array_new_length is the type of the object thrown as exceptions by the new-expressions to report invalid array lengths if. 1) array length is negative. 2) total size of the new array would exceed implementation-defined maximum value. 3) the number of initializer-clauses exceeds the number of elements to initialize. Only the first array dimension may generate this exception; dimensions other than the

std::wcsrchr

Defined in header <cwchar> const wchar_t* wcsrchr( const wchar_t* str, wchar_t ch ); wchar_t* wcsrchr( wchar_t* str, wchar_t ch ); Finds the last occurrence of the wide character ch in the wide string pointed to by str. Parameters str - pointer to the null-terminated wide string to be analyzed ch - wide character to search for Return value Pointer to the found character in str, or NULL if no such character is found. Example See als

auto specifier

Specifies that the type of the variable that is being declared will be automatically deduced from its initializer. For functions, specifies that the return type is a trailing return type or will be deduced from its return statements (since C++14). Syntax auto variable initializer (1) (since C++11) auto function -> return type (2) (since C++11) auto function (3) (since C++14) decltype(auto) variable initializer (4) (since C++14) decltype(auto) function (5) (sin

namespace

Usage namespace declaration namespace alias definition using-directives

std::mblen

Defined in header <cstdlib> int mblen( const char* s, std::size_t n ); Determines the size, in bytes, of the multibyte character whose first byte is pointed to by s. If s is a null pointer, resets the global conversion state and determined whether shift sequences are used. This function is equivalent to the call std::mbtowc((wchar_t*)0, s, n), except that conversion state of std::mbtowc is unaffected. Notes Each call to mblen updates the internal global conversion state

Arithmetic operators

Returns the result of specific arithmetic operation. Operator name Syntax Over​load​able Prototype examples (for class T) Inside class definition Outside class definition unary plus +a Yes T T::operator+() const; T operator+(const T &a); unary minus -a Yes T T::operator-() const; T operator-(const T &a); addition a + b Yes T T::operator+(const T2 &b) const; T operator+(const T &a, const T2 &b); subtraction a - b Yes T T::operator-