chrono

This header is part of the date and time library. Classes Defined in namespace std::chrono duration (C++11) a time interval (class template) system_clock (C++11) wall clock time from the system-wide realtime clock (class) steady_clock (C++11) monotonic clock that will never be adjusted (class) high_resolution_clock (C++11) the clock with the shortest tick period available (class) time_point (C++11) a point in time (class template) treat_as_floating_poi

std::ostrstream::freeze

void freeze(bool flag = true); If the stream is using a dynamically-allocated array for output, disables (flag == true) or enables (flag == false) automatic allocation/deallocation of the buffer. Effectively calls rdbuf()->freeze(flag). Notes After a call to str(), dynamic streams become frozen automatically. A call to freeze(false) is required before exiting the scope in which this ostrstream object was created. otherwise the destructor will leak memory. Also, additional output t

std::stack::stack

(1) explicit stack( const Container& cont = Container() ); (until C++11) explicit stack( const Container& cont ); (since C++11) explicit stack( Container&& cont = Container() ); (2) (since C++11) stack( const stack& other ); (3) stack( stack&& other ); (4) (since C++11) template< class Alloc > explicit stack( const Alloc& alloc ); (5) (since C++11) template< class Alloc > stack( const Container& cont, const A

std::list::empty

bool empty() const; Checks if the container has no elements, i.e. whether begin() == end(). Parameters (none). Return value true if the container is empty, false otherwise. Exceptions (none) (until C++11) noexcept specification: noexcept (since C++11) Complexity Constant. Example The following code uses empty to check if a std::list<int> contains any elements: #include <list> #include <iostream> int main() { std::list<int> numbers; s

Unqualified name lookup

For an unqualified name, that is a name that does not appear to the right of a scope resolution operator ::, name lookup examines the scopes as described below, until it finds at least one declaration of any kind, at which time the lookup stops and no further scopes are examined. (Note: lookup from some contexts skips some declarations, for example, lookup of the name used to the left of :: ignores function, variable, and enumerator declarations, lookup of a name used as a base class specifier

or_eq

Usage alternative operators: as an alternative for |=

std::chrono::system_clock::to_time_t

static std::time_t to_time_t( const time_point& t ); (since C++11) Converts t to a std::time_t type. If std::time_t has lower precision, it is implementation-defined whether the value is rounded or truncated. Parameters t - system clock time point to convert Return value A std::time_t value representing t. Exceptions noexcept specification: noexcept See also from_time_t [static] converts std::time_t to a system clock time point (public static member funct

std::basic_stringbuf::str

std::basic_string<CharT, Traits, Allocator> str() const; (1) void str( const std::basic_string<CharT, Traits, Allocator>& s); (2) Gets and sets the underlying string. 1) Creates and returns a std::basic_string object containing a copy of this std::basic_stringbuf's underlying character sequence. For input-only streams, the returned string contains the characters from the range [eback(), egptr()). For input/output or output-only streams, contains the characters fro

std::numeric_limits::digits10

static const int digits10; (until C++11) static constexpr int digits10 (since C++11) The value of std::numeric_limits<T>::digits10 is the number of base-10 digits that can be represented by the type T without change, that is, any number with this many decimal digits can be converted to a value of type T and back to decimal form, without change due to rounding or overflow. For base-radix types, it is the value of digits (digits-1 for floating-point types) multiplied by log10(

typeid

Usage typeid operator