std::set::swap

void swap( set& other ); Exchanges the contents of the container with those of other. Does not invoke any move, copy, or swap operations on individual elements. All iterators and references remain valid. The past-the-end iterator is invalidated. The Pred objects must be Swappable, and they are exchanged using unqualified call to non-member swap. If std::allocator_traits<allocator_type>::propagate_on_container_swap::value is true, then the allocators are exchanged using an unq

std::collate::hash

Defined in header <locale> public: long hash( const CharT* beg, const CharT* end ) const; (1) protected: virtual long do_hash( const CharT* beg, const CharT* end ) const; (2) 1) Public member function, calls the protected virtual member function do_hash of the most derived class. 2) Converts the character sequence [beg, end) to an integer value that is equal to the hash obtained for all strings that collate equivalent in this locale (compare() returns ​0​). For two

std::weak_ptr::use_count

long use_count() const; (since C++11) Returns the number of shared_ptr instances that share ownership of the managed object, or ​0​ if the managed object has already been deleted, i.e. *this is empty. Parameters (none). Return value The number of shared_ptr instances sharing the ownership of the managed object. Exceptions noexcept specification: noexcept Notes expired() may be faster than use_count(). Example See also expired checks whether the referenced object

std::valarray::size

std::size_t size() const; Returns the number of elements in the valarray. Parameters (none). Return value Number of elements in the valarray. Example See also resize changes the size of valarray (public member function)

if statement

Conditionally executes another statement. Used where code needs to be executed based on a run-time condition. Syntax attr(optional) if ( condition ) statement_true attr(optional) if ( condition ) statement_true else statement_false attr(C++11) - any number of attributes condition - one of expression which is contextually convertible to bool declaration of a single non-array variable with a brace-or-equals initializer. statement_true - any statement (often a

try

Usage try-catch block

std::streamsize

Defined in header <ios> typedef /*unspecified*/ streamsize; The type std::streamsize is a signed integral type used to represent the number of characters transferred in an I/O operation or the size of an I/O buffer. It is used as a signed counterpart of std::size_t, similar to the POSIX type ssize_t. Except in the constructors of std::strstreambuf, negative values of std::streamsize are never used. See also gcount returns number of characters extracted by last unform

Transactional memory

Transactional memory is a concurrency synchronization mechanism that combines groups of statements in transactions, that are. atomic (either all statements occur, or nothing occurs) isolated (statements in a transaction may not observe half-written writes made by another transaction, even if they execute in parallel) Typical implementations use hardware transactional memory where supported and to the limits that it is available (e.g. until the changeset is saturated) and fall back to soft

Allocator

Encapsulates a memory allocation and deallocation strategy. Every standard library component that may need to allocate or release storage, from std::string, std::vector, and every container except std::array, to std::shared_ptr and std::function, does so through an Allocator: an object of a class type that satisfies the following requirements. Some requirements are optional: the template std::allocator_traits supplies the default implementations for all optional requirements, and all standard l

std::piecewise_linear_distribution::param

param_type param() const; (1) (since C++11) void param( const param_type& params ); (2) (since C++11) Manages the associated distribution parameter set. 1) Returns the associated parameter set. 2) Sets the associated parameter set to params. Parameters params - new contents of the associated parameter set Return value 1) The associated parameter set. 2) (none). Complexity Constant.