INFINITY

Defined in header <cmath> #define INFINITY /*implementation defined*/ (since C++11) If the implementation supports floating-point infinities, the macro INFINITY expands to constant expression of type float which evaluates to positive or unsigned infinity. If the implementation does not support floating-point infinities, the macro INFINITY expands to a positive value that is guaranteed to overflow a float at compile time, and the use of this macro generates a compiler warnin

std::chrono::steady_clock::now

static std::chrono::time_point<std::chrono::steady_clock> now(); (since C++11) Returns a time point representing the current point in time. Parameters (none). Return value A time point representing the current time. Exceptions noexcept specification: noexcept Example #include <iostream> #include <vector> #include <numeric> #include <chrono> volatile int sink; int main() { for (auto size = 1ull; size < 1000000000ull; size *= 100) {

operators (std::time_point)

(1) template< class C, class D1, class R2, class P2 > time_point<C, typename std::common_type<D1, duration<R2,P2>>::type> operator+( const time_point<C,D1>& pt, const duration<R2,P2>& d ); (since C++11) (until C++14) template< class C, class D1, class R2, class P2 > constexpr time_point<C, typename std::common_type<D1, duration<R2,P2>>::type> operator+( const time_point<C,D1>& pt,

std::logical_not&lt;void&gt;

Defined in header <functional> template<> class logical_not<void>; (since C++14) std::logical_not<> is a specialization of std::logical_not with parameter and return type deduced. Member types Member type Definition is_transparent /* unspecified */ Member functions operator() to its argument (public member function) std::logical_not<>::operator() template< class T > constexpr auto operator()( T&& arg ) const

clocale

This header was originally in the C standard library as <locale.h>. This header is part of the localization library. Types lconv formatting details, returned by std::localeconv (class) Constants NULL implementation-defined null pointer constant (macro constant) LC_ALLLC_COLLATELC_CTYPELC_MONETARYLC_NUMERICLC_TIME locale categories for std::setlocale (macro constant) Functions setlocale gets and sets the current C locale (function) localeconv queries

std::clog

Defined in header <iostream> extern std::ostream clog; (1) extern std::wostream wclog; (2) The global objects std::clog and std::wclog control output to a stream buffer of implementation-defined type (derived from std::streambuf), associated with the standard C output stream stderr, but, unlike std::cerr/std::wcerr, these streams are not automatically flushed and not automatically tie()'d with cout. These objects are guaranteed to be initialized during or before the f

std::basic_streambuf::swap

void swap( basic_streambuf& other ); (since C++11) Exchanges the contents of the stream buffer with those of other. Parameters other - stream buffer to exchange contents with Return value (none). Exceptions (none). Example

std::forward_list::clear

void clear(); (since C++11) Removes all elements from the container. Invalidates any references, pointers, or iterators referring to contained elements. May invalidate any past-the-end iterators. Parameters (none). Return value (none). Exceptions noexcept specification: noexcept Complexity Linear in the size of the container. clear is defined in terms of erase, which has linear complexity. (until C++11) complexity of clear is omitted (since C++11)(until C++14) clea

std::gslice_array

Defined in header <valarray> template< class T > class gslice_array; std::gslice_array is a helper template used by std::gslice subscript operator. It has reference semantics to a subset of the array specified by the std::gslice object. Member types Type Definition value_type T Member functions (constructor) constructs a gslice_array (public member function) (destructor) destroys a gslice_array (public member function) operator= assigns

unsigned

Usage unsigned type modifier