std::basic_string::rfind

size_type rfind( const basic_string& str, size_type pos = npos ) const; (1) size_type rfind( const CharT* s, size_type pos, size_type count ) const; (2) size_type rfind( const CharT* s, size_type pos = npos ) const; (3) size_type rfind( CharT ch, size_type pos = npos ) const; (4) Finds the last substring equal to the given character sequence. Search begins at pos, i.e. the found substring must not begin in a position following pos. If npos or any value not smaller

std::error_category::equivalent

virtual bool equivalent( int code, const std::error_condition& condition ) const; (1) (since C++11) virtual bool equivalent( const std::error_code& code, int condition ) const; (2) (since C++11) Checks whether error code is equivalent to an error condition for the error category represented by *this. 1) Equivalent to default_error_condition(code) == condition. 2) Equivalent to *this == code.category() && code.val

std::shared_timed_mutex::unlock

void unlock(); (since C++14) Unlocks the mutex. The mutex must be locked by the current thread of execution, otherwise, the behavior is undefined. This operation synchronizes-with (as defined in std::memory_order) any subsequent lock operation that obtains ownership of the same mutex. Parameters (none). Return value (none). Exceptions (none). Notes unlock() is usually not called directly: std::unique_lock and std::lock_guard are used to manage exclusive locking. Example

std::error_category::error_category

error_category( const error_category& other ) = delete; (1) (since C++11) constexpr error_category(); (2) (since C++14) Constructs the error category object. Parameters (none). Exceptions 2) noexcept specification: noexcept

std::error_condition::clear

void clear(); (since C++11) Clears the state of the error condition. Sets the error code to ​0​ and error category to std::generic_category. Parameters (none). Return value (none). Exceptions noexcept specification: noexcept

std::is_compound

Defined in header <type_traits> template< class T > struct is_compound; (since C++11) If T is a compound type (that is, array, function, object pointer, function pointer, member object pointer, member function pointer, reference, class, union, or enumeration, including any cv-qualified variants), provides the member constant value equal true. For any other type, value is false. Template parameters T - a type to check Helper variable template template&

std::accumulate

Defined in header <numeric> template< class InputIt, class T > T accumulate( InputIt first, InputIt last, T init ); (1) template< class InputIt, class T, class BinaryOperation > T accumulate( InputIt first, InputIt last, T init, BinaryOperation op ); (2) Computes the sum of the given value init and the elements in the range [first, last). The first version uses operator+ to sum up the elements, the second version uses the given binary functio

std::is_null_pointer

Defined in header <type_traits> template< class T > struct is_null_pointer; (since C++14) Checks whether T is the type std::nullptr_t. Provides the member constant value that is equal to true, if T is the type std::nullptr_t, const std::nullptr_t, volatile std::nullptr_t, or const volatile std::nullptr_t. Otherwise, value is equal to false. Template parameters T - a type to check Helper variable template template< class T > constexpr bool is_nul

while loop

Executes a statement repeatedly, until the value of condition becomes false. The test takes place before each iteration. Syntax attr(optional) while ( condition ) statement attr(C++11) - any number of attributes condition - any expression which is contextually convertible to bool or a declaration of a single variable with a brace-or-equals initializer. This expression is evaluated before each iteration, and if it yields false, the loop is exited. If this is a declaration,

std::bad_alloc

Defined in header <new> class bad_alloc; std::bad_alloc is the type of the object thrown as exceptions by the allocation functions to report failure to allocate storage. Inheritance diagram. Member functions (constructor) constructs the bad_alloc object (public member function) operator= replaces a bad_alloc object (public member function) what returns explanatory string (public member function) std::bad_alloc::bad_alloc bad_alloc(); Con