std::endl

Defined in header <ostream> template< class CharT, class Traits > std::basic_ostream<CharT, Traits>& endl( std::basic_ostream<CharT, Traits>& os ); Inserts a newline character into the output sequence os and flushes it as if by calling os.put(os.widen('\n')) followed by os.flush(). This is an output-only I/O manipulator, it may be called with an expression such as out << std::endl for any out of type std::basic_ostream. Notes This manipula

std::forward_list::remove

void remove( const T& value ); (since C++11) template< class UnaryPredicate > void remove_if( UnaryPredicate p ); (since C++11) Removes all elements satisfying specific criteria. The first version removes all elements that are equal to value, the second version removes all elements for which predicate p returns true. Parameters value - value of the elements to remove p - unary predicate which returns ​true if the element should be removed. The signature of

std::rotate

Defined in header <algorithm> template< class ForwardIt > void rotate( ForwardIt first, ForwardIt n_first, ForwardIt last ); (until C++11) template< class ForwardIt > ForwardIt rotate( ForwardIt first, ForwardIt n_first, ForwardIt last ); (since C++11) Performs a left rotation on a range of elements. Specifically, std::rotate swaps the elements in the range [first, last) in such a way that the element n_first becomes the first element of the new range and

false

Usage boolean literal

std::iswcntrl

Defined in header <cwctype> int iswcntrl( std::wint_t ch ); Checks if the given wide character is a control character, i.e. codes 0x00-0x1F and 0x7F and any control characters specific to the current locale. Parameters ch - wide character Return value Non-zero value if the wide character is a control character, zero otherwise. Example #include <iostream> #include <cwctype> #include <clocale> int main() { wchar_t c = L'\u2028'; // t

std::new_handler

Defined in header <new> typedef void (*new_handler)(); std::new_handler is the function pointer type (pointer to function that takes no arguments and returns void), which is used by the functions std::set_new_handler and std::get_new_handler. See also operator newoperator new[] allocation functions (function) set_new_handler registers a new handler (function) get_new_handler (C++11) obtains the current new handler (function)

std::nan

Defined in header <cmath> float nanf( const char* arg ); (since C++11) double nan( const char* arg ); (since C++11) long double nanl( const char* arg ); (since C++11) Converts the implementation-defined character string arg into the corresponding quiet NaN value, as if by calling std::strtod, std::strtof, or std::strtold, respectively, as follows: The call std::nan("string") is equivalent to the call std::strtod("NAN(string)", (char**)NULL);. The call std::nan("

std::geometric_distribution

Defined in header <random> template< class IntType = int > class geometric_distribution; (since C++11) Produces random non-negative integer values i, distributed according to discrete probability function: P(i|p) = p · (1 − p). i The value represents the number of yes/no trials (each succeeding with probability p) which are necessary to obtain a single success. std::geometric_distribution<>(p) is exactly equivalent to std::negative_binomial_distribution<

std::shared_mutex::lock

void lock(); (since C++17) Locks the mutex. If another thread has already locked the mutex, a call to lock will block execution until the lock is acquired. If lock is called by a thread that already owns the mutex in any mode (shared or exclusive), the behavior is undefined. Prior unlock() operation on the same mutex synchronizes-with (as defined in std::memory_order) this operation. Parameters (none). Return value (none). Exceptions Throws std::system_error when errors occur,

std::deque::max_size

size_type max_size() const; Returns the maximum number of elements the container is able to hold due to system or library implementation limitations, i.e. std::distance(begin(), end()) for the largest container. Parameters (none). Return value Maximum number of elements. Exceptions (none) (until C++11) noexcept specification: noexcept (since C++11) Complexity Constant. Notes This value is typically equal to std::numeric_limits<size_type>::max(), and reflects the