std::valarray::swap

void swap( valarray& other ); Swaps the contents with those of other. Parameters other - another valarray to swap the contents with Return value (none). Exceptions (none) (until C++11) noexcept specification: noexcept (since C++11)

std::scoped_allocator_adaptor::allocate

Defined in header <scoped_allocator> pointer allocate( size_type n ); (1) (since C++11) pointer allocate( size_type n, const_void_pointer hint ); (2) (since C++11) Uses the outer allocator to allocate uninitialized storage. 1) Calls std::allocator_traits<OuterAlloc>::allocate(outer_allocator(), n) 2) Additionally provides memory locality hint, by calling std::allocator_traits<OuterAlloc>::allocate(outer_allocator(), n, hint) Parameters n - the

std::ios_base::iword

long& iword( int index ); First, allocates or resizes the private storage (dynamic array of long or another indexable data structure) sufficiently to make index a valid index, then returns a reference to the long element of the private storage with the index index. The reference may be invalidated by any operation on this ios_base object, including another call to iword(), but the stored values are retained, so that reading from iword(index) with the same index later will produce th

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

register

Usage automatic storage duration specifier (deprecated). (until C++17) The keyword is unused and reserved. (since C++17)

typeid

Usage typeid operator

std::stack::stack

(1) explicit stack( const Container& cont = Container() ); (until C++11) explicit stack( const Container& cont ); (since C++11) explicit stack( Container&& cont = Container() ); (2) (since C++11) stack( const stack& other ); (3) stack( stack&& other ); (4) (since C++11) template< class Alloc > explicit stack( const Alloc& alloc ); (5) (since C++11) template< class Alloc > stack( const Container& cont, const A

std::ostrstream::freeze

void freeze(bool flag = true); If the stream is using a dynamically-allocated array for output, disables (flag == true) or enables (flag == false) automatic allocation/deallocation of the buffer. Effectively calls rdbuf()->freeze(flag). Notes After a call to str(), dynamic streams become frozen automatically. A call to freeze(false) is required before exiting the scope in which this ostrstream object was created. otherwise the destructor will leak memory. Also, additional output t

std::iswupper

Defined in header <cwctype> int iswupper( std::wint_t ch ); Checks if the given wide character is an uppercase letter, i.e. one of ABCDEFGHIJKLMNOPQRSTUVWXYZ or any uppercase letter specific to the current locale. Parameters ch - wide character Return value Non-zero value if the wide character is an uppercase letter, zero otherwise. Example #include <iostream> #include <cwctype> #include <clocale> int main() { wchar_t c = L'\u053d'

std::unordered_map::max_load_factor

float max_load_factor() const; (1) (since C++11) void max_load_factor( float ml ); (2) (since C++11) Manages the maximum load factor (number of elements per bucket). The container automatically increases the number of buckets if the load factor exceeds this threshold. 1) Returns current maximum load factor. 2) Sets the maximum load factor to ml. Parameters ml - new maximum load factor setting Return value 1) current maximum load factor. 2) none. Complexity Constan