operator

Usage declaration of an overloaded operator

std::push_heap

Defined in header <algorithm> template< class RandomIt > void push_heap( RandomIt first, RandomIt last ); (1) template< class RandomIt, class Compare > void push_heap( RandomIt first, RandomIt last, Compare comp ); (2) Inserts the element at the position last-1 into the max heap defined by the range [first, last-1). The first version of the function uses operator< to compare the elements, the second uses the given comparison function com

std::acos

Defined in header <cmath> float acos( float arg ); (1) double acos( double arg ); (2) long double acos( long double arg ); (3) double acos( Integral arg ); (4) (since C++11) Computes the principal value of the arc cosine of arg. 4) A set of overloads or a function template accepting an argument of any integral type. Equivalent to 2) (the argument is cast to double). Parameters arg - value of a floating-point or Integral type R

std::log(std::valarray)

Defined in header <valarray> template< class T > valarray<T> log( const valarray<T>& va ); For each element in va computes natural logarithm of the value of the element. Parameters va - value array to apply the operation to Return value Value array natural logarithms of the values in va. Notes Unqualified function (log) is used to perform the computation. If such function is not available, std::log is used due to argument dependent loo

std::nth_element

Defined in header <algorithm> template< class RandomIt > void nth_element( RandomIt first, RandomIt nth, RandomIt last ); (1) template< class RandomIt, class Compare > void nth_element( RandomIt first, RandomIt nth, RandomIt last, Compare comp ); (2) nth_element is a partial sorting algorithm that rearranges elements in [first, last) such that: The element pointed at by nth is changed to whatever element would occur in that position if [first, last) was s

std::iswlower

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

std::mbrtoc16

Defined in header <cuchar> std::size_t mbrtoc16( char16_t* pc16, const char* s, std::size_t n, std::mbstate_t* ps ); (since C++11) Converts a narrow multibyte character to UTF-16 character representation. If s is not a null pointer, inspects at most n bytes of the multibyte character string, beginning with the byte pointed to by s to determine the number of bytes necessary to complete the next multibyte chara

std::move

Defined in header <utility> template< class T > typename std::remove_reference<T>::type&& move( T&& t ); (since C++11) (until C++14) template< class T > constexpr typename std::remove_reference<T>::type&& move( T&& t ); (since C++14) std::move is used to indicate that an object t may be "moved from", i.e. allowing the efficient transfer of resources from t to another object. In particular, std::move produces an x

std::match_results

Defined in header <regex> template< class BidirIt, class Alloc = std::allocator<std::sub_match<BidirIt>> > class match_results; (since C++11) The class template std::match_results holds a collection of character sequences that represent the result of a regular expression match. This is a specialized allocator-aware container. It can only be default created, obtained from std::regex_iterator, or modified by std::regex_search or std::regex_match. Bec

Error handling

Exception handling The header <exception> provides several classes and functions related to exception handling in C++ programs. Defined in header <exception> exception base class for exceptions thrown by the standard library components (class) Capture and storage of exception objects uncaught_exceptionuncaught_exceptions (C++17) checks if exception handling is currently in progress (function) exception_ptr (C++11) shared pointer type for handling except