dynamic_cast conversion

Safely converts pointers and references to classes up, down, and sideways along the inheritance hierarchy. Syntax dynamic_cast < new_type > ( expression ) new_type - pointer to complete class type, reference to complete class type, or pointer to (optionally cv-qualified) void expression - lvalue of a complete class type if new_type is a reference, prvalue of a pointer to complete class type if new_type is a pointer. If the cast is successful, dynamic_cast returns

std::c32rtomb

Defined in header <cuchar> std::size_t c32rtomb( char* s, char32_t c32, std::mbstate_t* ps ); (since C++11) Converts a UTF-32 character to its narrow multibyte representation. If s is not a null pointer, the function determines the number of bytes necessary to store the multibyte character representation of c32 (including any shift sequences), and stores the multibyte character representation in the character array whose first element is pointed to by s. At most MB_CUR_MAX

std::basic_string::compare

int compare( const basic_string& str ) const; (1) int compare( size_type pos1, size_type count1, const basic_string& str ) const; (2) (3) int compare( size_type pos1, size_type count1, const basic_string& str, size_type pos2, size_type count2 ) const; (until C++14) int compare( size_type pos1, size_type count1, const basic_string& str, size_type pos2, size_type count2 = npos ) const; (since C

std::deque::emplace_front

template< class... Args > void emplace_front( Args&&... args ); (since C++11) Inserts a new element to the beginning of the container. The element is constructed through std::allocator_traits::construct, which typically uses placement-new to construct the element in-place at the location provided by the container. The arguments args... are forwarded to the constructor as std::forward<Args>(args).... Parameters args - arguments to forward to the constructor of

std::negative_binomial_distribution

Defined in header <random> template< class IntType = int > class negative_binomial_distribution; (since C++11) Produces random non-negative integer values i, distributed according to discrete probability function: P(i|k,p) = ⎛⎜⎝k + i − 1i⎞⎟⎠ · pk · (1 − p)i The value represents the number of failures in a series of independent yes/no trials (each succeeds with probability p), before exactly k successes occur. std::negative_binomial_distribution satisfies RandomNu

std::normal_distribution::mean

RealType mean() const; (1) (since C++11) RealType stddev() const; (2) (since C++11) Returns the parameters the distribution was constructed with. 1) Returns the mean μ distribution parameter. The mean specifies the location of the peak. The default value is 0.0. 2) Returns the deviation σ distribution parameter. The default value is 1.0. Parameters (none). Return value 1) The mean μ distribution parameter. 2) The deviation σ distribution parameter. See also param

std::binomial_distribution

Defined in header <random> template< class IntType = int > class binomial_distribution; (since C++11) Produces random non-negative integer values i, distributed according to discrete probability function: P(i|t,p) = ⎛⎜⎝ti⎞⎟⎠ · pi · (1 − p)t−i The value obtained is the number of successes in a sequence of t yes/no experiments, each of which succeeds with probability p. std::binomial_distribution satisfies RandomNumberDistribution. Template parameters IntType

vector

This header is part of the containers library. Includes <initializer_list>(C++11) Classes vector dynamic contiguous array (class template) vector<bool> space-efficient dynamic bitset (class template specialization) std::hash<std::vector<bool>> (C++11) hash support for std::vector<bool> (class template specialization) Functions operator==operator!=operator<operator<=operator>operator>= lexicographically compares the va

fstream

This header is part of the Input/Output library. Classes basic_filebuf implements raw file device (class template) basic_ifstream implements high-level file stream input operations (class template) basic_ofstream implements high-level file stream output operations (class template) basic_fstream implements high-level file stream input/output (class template) Typedefs filebuf basic_filebuf<char> wfilebuf basic_filebuf<wchar_t> ifstream basic_ifs

Classes

A class is a user-defined type. A class type is defined by class-specifier, which appears in decl-specifier-seq of the declaration syntax. The class specifier has the following syntax: class-key attr class-head-name base-clause { member-specification } (1) class-key - one of class, struct, union attr(C++11) - optional sequence of any number of attributes class-head-name - the name of the class that's being defined. Optionally prepended by nested-name-specifier (sequen