std::unordered_map::begin(int)

local_iterator begin( size_type n ); (since C++11) const_local_iterator begin( size_type n ) const; (since C++11) const_local_iterator cbegin( size_type n ) const; (since C++11) Returns an iterator to the first element of the bucket with index pos. Parameters n - the index of the bucket to access Return value Iterator to the first element. Complexity Constant. See also end(int) cend(int) returns an iterator to the end of the specified bucket (public m

RandomNumberDistribution

A RandomNumberDistribution is a function object returning random numbers according to a probability density function p(x) or a discrete probability distribution P(xi). Requirements D is a class meeting the RandomNumberDistribution requirements. It shall also satisfy the CopyConstructible and CopyAssignable requirements. T is the associated result_type. P is the associated param_type. It shall satisfy the CopyConstructible, CopyAssignable, and EqualityComparable requirements. It also h

static

Usage static storage duration with internal linkage specifier declarations of class members not bound to specific instances

std::initializer_list::end

const T* end() const; (since C++11) (until C++14) constexpr const T* end() const; (since C++14) Returns a pointer to one past the last element in the initializer list, i.e. begin() + size(). If the initializer list is empty, the values of begin() and end() are unspecified, but will be identical. Parameters (none). Return value a pointer to one past the last element in the initializer list. Exceptions noexcept specification: noexcept Complexity Constant. See also

Non-static member functions

A non-static member function is a function that is declared in a member specification of a class without a static or friend specifier. class S { int mf1(); // non-static member function declaration void mf2() volatile, mf3() &&; // can be cv-qualified and reference-qualified int mf4() const { return data; } // can be defined inline virtual void mf5() final; // can be virtual, can use final/override S() : data(12) {} // constructors are member functions too int da

Type alias

Type alias is a name that refers to a previously defined type (similar to typedef). Alias template is a name that refers to a family of types. Syntax Alias declarations are declarations with the following syntax. using identifier attr(optional) = type-id ; (1) template < template-parameter-list > using identifier attr(optional) = type-id ; (2) attr(C++11) - optional sequence of any number of attributes identifier - the name that is introduced by this declaratio

std::erf

Defined in header <cmath> float erf( float arg ); (1) (since C++11) double erf( double arg ); (2) (since C++11) long double erf( long double arg ); (3) (since C++11) double erf( Integral arg ); (4) (since C++11) 1-3) Computes the error function of arg. 4) A set of overloads or a function template accepting an argument of any integral type. Equivalent to 2) (the argument is cast to double). Parameters arg - value of a floating-poin

std::rand

Defined in header <cstdlib> int rand(); Returns a pseudo-random integral value between ​0​ and RAND_MAX (0 and RAND_MAX included). std::srand() seeds the pseudo-random number generator used by rand(). If rand() is used before any calls to srand(), rand() behaves as if it was seeded with srand(1). Each time rand() is seeded with srand(), it must produce the same sequence of values on successive calls. Other functions in the standard library may call rand, it is implementatio

Conditional inclusion

The preprocessor supports conditional compilation of parts of source file. This behavior is controlled by #if, #else, #elif, #ifdef, #ifndef and #endif directives. Syntax #if expression #ifdef expression #ifndef expression #elif expression #else #endif Explanation The conditional preprocessing block starts with #if, #ifdef or #ifndef directive, then optionally includes any number of #elif directives, then optionally includes at most one #else directiv

dynamic exception specification

Lists the exceptions that a function might directly or indirectly throw. Syntax throw(typeid, typeid, ...) (deprecated) This specification may appear only on lambda-declarator or on a function declarator that is the top-level (until C++17) declarator of a function, variable, or non-static data member, whose type is a function type, a pointer to function type, a reference to function type, a pointer to member function type. It may appear on the declarator of a parameter or on the decl