User-defined literals

Allows integer, floating-point, character, and string literals to produce objects of user-defined type by defining a user-defined suffix. Syntax A user-defined literal is an expression of any of the following forms. decimal-literal ud-suffix (1) octal-literal ud-suffix (2) hex-literal ud-suffix (3) binary-literal ud-suffix (4) fractional-constant exponent-part(optional) ud-suffix (5) digit-sequence exponent-part ud-suffix (6) character-literal ud-suffix

std::aligned_storage

Defined in header <type_traits> template< std::size_t Len, std::size_t Align = /*default-alignment*/ > struct aligned_storage; (since C++11) Provides the member typedef type, which is a PODType suitable for use as uninitialized storage for any object whose size is at most Len and whose alignment requirement is a divisor of Align. The default value of Align is the most stringent (the largest) alignment requirement for any object whose size is at most Len. If the defaul

throw expression

Signals an erroneous condition and executes an error handler. Syntax throw expression (1) throw (2) Explanation See try-catch block for more information about try and catch (exception handler) blocks 1) First, copy-initializes the exception object from expression (this may call the move constructor for rvalue expression, and the copy/move may be subject to copy elision), then transfers control to the exception handler with the matching type whose compound statement or

std::unordered_multiset::rehash

void rehash( size_type count ); (since C++11) Sets the number of buckets to count and rehashes the container, i.e. puts the elements into appropriate buckets considering that total number of buckets has changed. If the new number of buckets makes load factor more than maximum load factor (count < size() / max_load_factor()), then the new number of buckets is at least size() / max_load_factor(). Parameters count - new number of buckets Return value (none). Complexity

std::basic_istream::readsome

std::streamsize readsome( char_type* s, std::streamsize count ); Extracts up to count immediately available characters from the input stream. The extracted characters are stored into the character array pointed to by s. Behaves as UnformattedInputFunction. After constructing and checking the sentry object, If rdbuf()->in_avail() == -1, calls setstate(eofbit) and extracts no characters. If rdbuf()->in_avail() == 0, extracts no characters. If rdbuf()->in_avail() > 0, extr

std::basic_ofstream::is_open

bool is_open(); (until C++11) bool is_open() const; (since C++11) Checks if the file stream has an associated file. Effectively calls rdbuf()->is_open(). Parameters (none). Return value true if the file stream has an associated file, false otherwise. Example See also open opens a file and associates it with the stream (public member function) close closes the associated file (public member function)

std::basic_stringstream::rdbuf

std::basic_stringbuf<CharT, Traits, Allocator>* rdbuf() const; Returns pointer to the underlying raw string device object. Parameters (none). Return value Pointer to the underlying raw string device. Example

LessThanComparable

The type must work with < operator and the result should have standard semantics. Requirements The type T satisfies LessThanComparable if. Given. a, b, and c, expressions of type T or const T The following expressions must be valid and have their specified effects. Expression Return type Requirements a < b implicitly convertible to bool Establishes strict weak ordering relation with the following properties For all a, !(a < a) If a < b then !(b < a) if a < b a

std::map::rend

reverse_iterator rend(); const_reverse_iterator rend() const; const_reverse_iterator crend() const; (since C++11) Returns a reverse iterator to the element following the last element of the reversed container. It corresponds to the element preceding the first element of the non-reversed container. This element acts as a placeholder, attempting to access it results in undefined behavior. Parameters (none). Return value Reverse iterator to the element following the last

std::mersenne_twister_engine::discard

void discard( unsigned long long z ); (since C++11) Advances the internal state by z times. Equivalent to calling operator() z times and discarding the result. Parameters z - integer value specifying the number of times to advance the state by Return value (none). Complexity See also operator() advances the engine's state and returns the generated value (public member function)