private

Usage private access specifier

std::multimap::multimap

(1) explicit multimap( const Compare& comp = Compare(), const Allocator& alloc = Allocator() ); (until C++14) multimap() : multimap( Compare() ) {} explicit multimap( const Compare& comp, const Allocator& alloc = Allocator() ); (since C++14) explicit multimap( const Allocator& alloc ); (1) (since C++11) (2) template< class InputIterator > multimap( InputIterator first, InputIterator last, const Comp

numeric

This header is part of the numeric library. Functions iota (C++11) fills a range with successive increments of the starting value (function template) accumulate sums up a range of elements (function template) inner_product computes the inner product of two ranges of elements (function template) adjacent_difference computes the differences between adjacent elements in a range (function template) partial_sum computes the partial sum of a range of elements (function te

std::map::clear

void clear(); 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 (none) (until C++11) noexcept specification: noexcept (since C++11) Complexity Linear in the size of the container. See also erase erases elements (public member function)

std::basic_string::begin

iterator begin(); const_iterator begin() const; const_iterator cbegin() const; (since C++11) Returns an iterator to the first character of the string. begin() returns a mutable or constant iterator, depending on the constness of *this. cbegin() always returns a constant iterator. It is equivalent to const_cast<const basic_string&>(*this).begin(). Parameters (none). Return value iterator to the first character. Exceptions (none) (until C++11) noexcept spec

std::future::future

future(); (1) (since C++11) future( future&& other ); (2) (since C++11) future( const future& other ) = delete; (3) (since C++11) Constructs a std::future object. 1) Default constructor. Constructs a std::future with no shared state. After construction, valid() == false. 2) Move constructor. Constructs a std::future with the shared state of other using move semantics. After construction, other.valid() == false. 3) std::future is not CopyConstructible. Parame

Empty base optimization

Allows the size of an empty base subobject to be zero. Explanation The size of any object or member subobject is required to be at least 1 even if the type is an empty class type (that is, a class or struct that has no non-static data members), in order to be able to guarantee that the addresses of distinct objects of the same type are always distinct. However, base class subobjects are not so constrained, and can be completely optimized out from the object layout: #include <cassert>

std::weak_ptr::expired

bool expired() const; (since C++11) Checks whether the managed object has already been deleted. Equivalent to use_count() == 0. Parameters (none). Return value true if the managed object has already been deleted, false otherwise. Exceptions noexcept specification: noexcept Example Demonstrates how expired is used to check validity of the pointer. #include <iostream> #include <memory> std::weak_ptr<int> gw; void f() { if (!gw.expired()) {

throw expression

Signals an erroneous condition and executes an error handler. Syntax throw expression (1) throw (2) Explanation See try-catch block for more information about try and catch (exception handler) blocks 1) First, copy-initializes the exception object from expression (this may call the move constructor for rvalue expression, and the copy/move may be subject to copy elision), then transfers control to the exception handler with the matching type whose compound statement or

std::aligned_storage

Defined in header <type_traits> template< std::size_t Len, std::size_t Align = /*default-alignment*/ > struct aligned_storage; (since C++11) Provides the member typedef type, which is a PODType suitable for use as uninitialized storage for any object whose size is at most Len and whose alignment requirement is a divisor of Align. The default value of Align is the most stringent (the largest) alignment requirement for any object whose size is at most Len. If the defaul