std::condition_variable

Defined in header <condition_variable> class condition_variable; (since C++11) The condition_variable class is a synchronization primitive that can be used to block a thread, or multiple threads at the same time, until another thread both modifies a shared variable (the condition), and notifies the condition_variable. The thread that intends to modify the variable has to. acquire a std::mutex (typically via std::lock_guard) perform the modification while the lock is held

std::recursive_timed_mutex::try_lock_for

template< class Rep, class Period > bool try_lock_for( const std::chrono::duration<Rep,Period>& timeout_duration ); (since C++11) Tries to lock the mutex. Blocks until specified timeout_duration has elapsed or the lock is acquired, whichever comes first. On successful lock acquisition returns true, otherwise returns false. If timeout_duration is less or equal timeout_duration.zero(), the function behaves like try_lock(). A steady clock is used to measure the duration. Th

std::match_results::format

template< class OutputIt > OutputIter format( OutputIt out, const char_type* fmt_first, const char_type* fmt_last, std::regex_constants::match_flag_type flags = std::regex_constants::format_default ) const; (1) (since C++11) template< class OutputIt, class ST, class SA > OutputIter format( OutputIt out, const basic_string<char_type,ST,SA>& fmt, std::regex_constants::ma

std::basic_string::replace

basic_string& replace( size_type pos, size_type count, const basic_string& str ); (1) basic_string& replace( const_iterator first, const_iterator last, const basic_string& str ); (1) (2) basic_string& replace( size_type pos, size_type count, const basic_string& str, size_type pos2, size_type count2 ); (until C++14) basic_string& replace( size_type pos, size

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

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

std::basic_string

Defined in header <string> template< class CharT, class Traits = std::char_traits<CharT>, class Allocator = std::allocator<CharT> > class basic_string; The class template basic_string stores and manipulates sequences of char-like objects. The class is dependent neither on the character type nor on the nature of operations on that type. The definitions of the operations are supplied via the Traits template parameter - a specialization of std:

std::replace

Defined in header <algorithm> template< class ForwardIt, class T > void replace( ForwardIt first, ForwardIt last, const T& old_value, const T& new_value ); (1) template< class ForwardIt, class UnaryPredicate, class T > void replace_if( ForwardIt first, ForwardIt last, UnaryPredicate p, const T& new_value ); (2) Replaces all elements satisfying specific criteria with new_value in the range [first, last). The first

std::unary_function

Defined in header <functional> template <typename ArgumentType, typename ResultType> struct unary_function; (until C++17)(deprecated since c++11) unary_function is a base class for creating function objects with one argument. unary_function does not define operator(); it is expected that derived classes will define this. unary_function provides only two types - argument_type and result_type - defined by the template parameters. Some standard library function object ad

Operator Precedence

The following table lists the precedence and associativity of C++ operators. Operators are listed top to bottom, in descending precedence. Precedence Operator Description Associativity 1 :: Scope resolution Left-to-right 2 ++ -- Suffix/postfix increment and decrement type() type{} Functional cast () Function call [] Subscript . -> Member access 3 ++ -- Prefix increment and decrement Right-to-left + - Unary plus and minus ! ~ Logical NOT an

std::chrono::duration

Defined in header <chrono> template< class Rep, class Period = std::ratio<1> > class duration; (since C++11) Class template std::chrono::duration represents a time interval. It consists of a count of ticks of type Rep and a tick period, where the tick period is a compile-time rational constant representing the number of seconds from one tick to the next. The only data stored in a duration is a tick count of type Rep. If Rep is floating point, then the