std::bitset::all

bool all() const; (1) (since C++11) bool any() const; (2) bool none() const; (3) Checks if all, any or none of the bits are set to true. 1) Checks if all bits are set to true 2) Checks if any bits are set to true 3) Checks if none of the bits are set to true Parameters (none). Return value 1) true if all bits are set to true, otherwise false 2) true if any of the bits are set to true, otherwise false 3) true if none of the bits are set to true, otherwise fal

EXIT_SUCCESS

Defined in header <cstdlib> #define EXIT_SUCCESS /*implementation defined*/ #define EXIT_FAILURE /*implementation defined*/ The EXIT_SUCCESS and EXIT_FAILURE macros expand into integral expressions that can be used as arguments to the std::exit function (and, therefore, as the values to return from the main function), and indicate program execution status. Constant Explanation EXIT_SUCCESS successful execution of a program EXIT_FAILURE unsuccessful executio

operators (std::uniform_int_distribution)

template< class CharT, class Traits, class ResultType > std::basic_ostream<CharT,Traits>& operator<<( std::basic_ostream<CharT,Traits>& ost, const uniform_int_distribution<ResultType>& d ); (1) template< class CharT, class Traits, class ResultType > std::basic_istream<CharT,Traits>& operator>>( std::basic_istream<CharT,Traits>& ist,

std::poisson_distribution

Defined in header <random> template< class IntType = int > class poisson_distribution; (since C++11) Produces random non-negative integer values i, distributed according to discrete probability function: P(i|μ) = e-μ·μi i! The value obtained is the probability of exactly i occurrences of a random event if the expected, mean number of its occurrence under the same conditions (on the same time/space interval) is μ. std::poisson_distribution satisfies RandomNumberDist

std::fpos

Defined in header <ios> template< class State > class fpos; Specializations of the class template std::fpos identify absolute positions in a stream or in a file. Each object of type fpos holds the byte position in the stream (typically as a private member of type std::streamoff) and the current shift state, a value of type State (typically std::mbstate_t). The following specializations of std::fpos are provided: Type Definition streampos std::fpos<std::char_

std::basic_ostream::operator&lt;&lt;

basic_ostream& operator<<( short value ); basic_ostream& operator<<( unsigned short value ); (1) basic_ostream& operator<<( int value ); basic_ostream& operator<<( unsigned int value ); (2) basic_ostream& operator<<( long value ); basic_ostream& operator<<( unsigned long value ); (3) basic_ostream& operator<<( long long value ); basic_ostream& operator<<( unsigned long long value ); (4) (since

Comparison operators

Compares the arguments. Operator name Syntax Over​load​able Prototype examples (for class T) As member function As free (namespace) function equal to a == b Yes bool T::operator ==(const T2 &b) const; bool operator ==(const T &a, const T2 &b); not equal to a != b Yes bool T::operator !=(const T2 &b) const; bool operator !=(const T &a, const T2 &b); less than a < b Yes bool T::operator <(const T2 &b) const; bool operator <

Elaborated type specifier

Elaborated type specifiers may be used to refer to a previously-declared class name (class, struct, or union) or to a previously-declared enum name even if the name was hidden by a non-type declaration. They may also be used to declare new class names. Syntax class-key class-name (1) enum enum-name (2) class-key attr(optional) identifier ; (3) class-key - one of class, struct, union class-name - the name of a previously-declared class type, optionally qualified

std::isdigit(std::locale)

Defined in header <locale> template< class charT > bool isdigit( charT ch, const locale& loc ); Checks if the given character is classified as a digit by the given locale's std::ctype facet. Parameters ch - character loc - locale Return value Returns true if the character is classified as a digit, false otherwise. Possible implementation template< class charT > bool isdigit( charT ch, const std::locale& loc ) { return std::use

char32_t

Usage char32_t type: as the declaration of the type (since C++11)