std::map::at

T& at( const Key& key ); (1) (since C++11) const T& at( const Key& key ) const; (2) (since C++11) Returns a reference to the mapped value of the element with key equivalent to key. If no such element exists, an exception of type std::out_of_range is thrown. Parameters key - the key of the element to find Return value Reference to the mapped value of the requested element. Exceptions std::out_of_range if the container does not have an element with t

float

Usage float type: as the declaration of the type

std::fdim

Defined in header <cmath> float fdim( float x, float y ); (1) (since C++11) double fdim( double x, double y ); (2) (since C++11) long double fdim( long double x, long double y ); (3) (since C++11) Promoted fdim( Arithmetic1 x, Arithmetic2 y ); (4) (since C++11) 1-3) Returns the positive difference between x and y, that is, if x>y, returns x-y, otherwise (if x≤y), returns +0. 4) A set of overloads or a function template for all combinatio

Basic concepts

This section provides definitions for the specific terminology and the concepts used when describing the C++ programming language. A C++ program is a sequence of text files (typically header and source files) that contain declarations. They undergo translation to become an executable program, which is executed when the OS calls its main function. Certain words in a C++ program have special meaning, and these are known as keywords. Others can be used as identifiers. Comments are ignored during t

std::poisson_distribution::max

result_type max() const; (since C++11) Returns the maximum value potentially generated by the distribution. Parameters (none). Return value The maximum value potentially generated by the distribution. Complexity Constant. See also min returns the minimum potentially generated value (public member function)

std::generate

Defined in header <algorithm> template< class ForwardIt, class Generator > void generate( ForwardIt first, ForwardIt last, Generator g ); Assigns each element in range [first, last) a value generated by the given function object g. Parameters first, last - the range of elements to generate g - generator function object that will be called. The signature of the function should be equivalent to the following: Ret fun(); The type Ret must be such that

std::poisson_distribution::reset

void reset(); (since C++11) Resets the internal state of the distribution object. After a call to this function, the next call to operator() on the distribution object will not be dependent on previous calls to operator(). Parameters (none). Return value (none). Complexity Constant.

std::discard_block_engine::base

const Engine& base() const; (since C++11) Returns the underlying engine. Parameters (none). Return value The underlying engine. Exceptions noexcept specification: noexcept

std::type_index::operators

bool operator==( const type_index& rhs ) const; (since C++11) bool operator!=( const type_index& rhs ) const; (since C++11) bool operator<( const type_index& rhs ) const; (since C++11) bool operator<=( const type_index& rhs ) const; (since C++11) bool operator>( const type_index& rhs ) const; (since C++11) bool operator>=( const type_index& rhs ) const; (since C++11) Compares the underlying std::type_info objects. 1-2) Ch

std::basic_string::swap

void swap( basic_string& other ); Exchanges the contents of the string with those of other. All iterators and references may be invalidated. Parameters other - string to exchange the contents with Return value (none). Exceptions noexcept specification: noexcept(std::allocator_traits<Allocator>::propagate_on_container_swap::value|| std::allocator_traits<Allocator>::is_always_equal::value) (since C++17) Example #include <string> #include &