case

Usage switch statement: as the declaration of the case labels

std::basic_filebuf::imbue

protected: virtual void imbue( const std::locale& loc ) Changes the associated locale so that all characters inserted or extracted after this call (and until another call to imbue()) are converted using the std::codecvt facet of loc. If the old locale's encoding is state-dependent and file is not positioned at the beginning, then the new locale must have the same std::codecvt facet as the one previously imbued. Parameters loc - the locale to imbue the stream with Return

std::enable_shared_from_this::enable_shared_from_this

constexpr enable_shared_from_this(); (1) (since C++11) enable_shared_from_this( const enable_shared_from_this<T>&obj ); (2) (since C++11) Constructs new enable_shared_from_this object. Parameters obj - an enable_shared_from_this to copy Exceptions noexcept specification: noexcept Example #include <memory> struct Foo : public std::enable_shared_from_this<Foo> { Foo() {} // implicitly calls enable_shared_from_this constructor std

double

Usage double type: as the declaration of the type

std::prev_permutation

Defined in header <algorithm> template< class BidirIt > bool prev_permutation( BidirIt first, BidirIt last); (1) template< class BidirIt, class Compare > bool prev_permutation( BidirIt first, BidirIt last, Compare comp); (2) Transforms the range [first, last) into the previous permutation from the set of all permutations that are lexicographically ordered with respect to operator< or comp. Returns true if such permutation exists, otherwise transforms th

switch statement

Transfers control to one of the several statements, depending on the value of a condition. Syntax attr(optional) switch ( condition ) statement attr(C++11) - any number of attributes condition - any expression of integral or enumeration type, or of a class type contextually implicitly convertible to an integral or enumeration type, or a declaration of a single non-array variable of such type with a brace-or-equals initializer. statement - any statement (typically a c

std::unordered_set::get_allocator

allocator_type get_allocator() const; (since C++11) Returns the allocator associated with the container. Parameters (none). Return value The associated allocator. Complexity Constant.

std::atomic_flag_test_and_set

Defined in header <atomic> (1) (since C++11) bool atomic_flag_test_and_set( volatile std::atomic_flag* p ); bool atomic_flag_test_and_set( std::atomic_flag* p ); (2) (since C++11) bool atomic_flag_test_and_set_explicit( volatile std::atomic_flag* p, std::memory_order order ); bool atomic_flag_test_and_set_explicit( std::atomic_flag* p, std::memory_order order ); Atomically

if

Usage if statement: as the declaration of the if statement

nullptr

Syntax nullptr (since C++11) Explanation The keyword nullptr denotes the pointer literal. It is a prvalue of type std::nullptr_t. There exist implicit conversions from nullptr to null pointer value of any pointer type and any pointer to member type. Similar conversions exist for any null pointer constant, which includes values of type std::nullptr_t as well as the macro NULL. Example Demonstrates how nullptr allows forwarding via a template function. #include <cstddef> #