std::atomic::fetch_sub

(since C++11) (member only of atomic<Integral> template specialization) T fetch_sub( T arg, std::memory_order order = std::memory_order_seq_cst ); T fetch_sub( T arg, std::memory_order order = std::memory_order_seq_cst ) volatile; (since C++11) (member only of atomic<T*> template specialization) T* fetch_sub( std::ptrdiff_t arg, std::memory_order order = std::memory_order_seq_cst ); T* fetch_sub( std::ptrdiff_t ar

std::minus

Defined in header <functional> template< class T > struct minus; (until C++14) template< class T = void > struct minus; (since C++14) Function object for performing subtraction. Effectively calls operator- on two instances of type T. Specializations The standard library provides a specialization of std::minus when T is not specified, which leaves the parameter types and return type to be deduced. minus<void> function object implementing x - y

reinterpret_cast

Usage reinterpret_cast type conversion expression: as the declaration of the expression

std::chrono::time_point_cast

template <class ToDuration, class Clock, class Duration> time_point<Clock, ToDuration> time_point_cast( const time_point<Clock, Duration> &t); (since C++11) (until C++14) template <class ToDuration, class Clock, class Duration> constexpr time_point<Clock, ToDuration> time_point_cast( const time_point<Clock, Duration> &t); (since C++14) Converts a std::chrono::time_point fr

std::locale::classic

Defined in header <locale> static const locale& classic(); Obtains a reference to the C++ locale that implements the classic "C" locale semantics. This locale, unlike the global locale, cannot be altered. Parameters none. Return value Returns a reference to the "C" locale. Notes Some of the standard-required facets, such as the UTF-8/UTF-32 conversion facet std::codecvt<char32_t, char, std::mbstate_t>, have no equivalents in the "C" locale, but they are n

std::locale::combine

Defined in header <locale> template< class Facet > locale combine( const locale& other ) const; Constructs a locale object which is a copy of *this except for the facet of type Facet, which is copied from other. Return value The new, nameless, locale. Exceptions std::runtime_error if other does not implement Facet. Example #include <iostream> #include <locale> int main() { const double number = 1000.25; std::cout << "\"C\" lo

std::numeric_limits::is_integer

static const bool is_integer; (until C++11) static constexpr bool is_integer; (since C++11) The value of std::numeric_limits<T>::is_integer is true for all integer arithmetic types T and false otherwise. This constant is meaningful for all specializations. Standard specializations T value of std::numeric_limits<T>::is_integer /* non-specialized */ false bool true char true signed char true unsigned char true wchar_t true char16_t true

std::logic_error

Defined in header <stdexcept> class logic_error; Defines a type of object to be thrown as exception. It reports errors that are a consequence of faulty logic within the program such as violating logical preconditions or class invariants and may be preventable. No standard library components throw this exception directly, but the exception types std::invalid_argument, std::domain_error, std::length_error, std::out_of_range, std::future_error, and std::experimental::bad_optio

operators (std::thread::id)

bool operator==( thread::id lhs, thread::id rhs ); (1) (since C++11) bool operator!=( thread::id lhs, thread::id rhs ); (2) (since C++11) bool operator<( thread::id lhs, thread::id rhs ); (3) (since C++11) bool operator<=( thread::id lhs, thread::id rhs ); (4) (since C++11) bool operator>( thread::id lhs, thread::id rhs ); (5) (since C++11) bool operator>=( thread::id lhs, thread::id rhs ); (6) (since C++11) Compares two thread identifiers. 1-2

std::fgetwc

Defined in header <cwchar> wint_t fgetwc( std::FILE* stream ); wint_t getwc( std::FILE* stream ); Reads the next wide character from the given input stream. getwc() may be implemented as a macro and may evaluate stream more than once. Parameters stream - to read the wide character from Return value The next wide character from the stream or WEOF if an error has occurred or the end of file has been reached. If an encoding error occurred, errno is set to E