std::random_device::random_device

explicit random_device(const std::string& token = /*implementation-defined*/ ); (1) (since C++11) random_device(const random_device& ) = delete; (2) (since C++11) 1) Constructs a new std::random_device object, making use of the argument token, if provided, in implementation-defined manner. 2) The copy constructor is deleted: std::random_device is not copyable. Exceptions Throws an implementation-defined exceptions derived from std::exception on failure. Notes The

operators (std::linear_congruential_engine)

template< class CharT, class Traits, class UIntType, UIntType a, UIntType c, UIntType m > std::basic_ostream<CharT,Traits>& operator<<( std::basic_ostream<CharT,Traits>& ost, const std::linear_congruential_engine<UIntType,a,c,m>& e ); (1) (since C++11) template< class CharT, class Traits, class UIntType, UIntType a, UIntType c, UIntType m > std::basic_istream<CharT,Traits>& operator&g

std::basic_string::empty

bool empty() const; Checks if the string has no characters, i.e. whether begin() == end(). Parameters (none). Return value true if the string is empty, false otherwise. Exceptions (none) (until C++11) noexcept specification: noexcept (since C++11) Complexity Constant. Example #include <iostream> #include <string> int main() { std::string s; std::boolalpha(std::cout); std::cout << "s.empty():" << s.empty() << "\t s:'" &

Error directive

Shows given message and renders program ill-formed. Syntax #error error_message Explanation After encountering #error directive, diagnostic message error_message is shown and the program is rendered ill-formed (the compilation is stopped). error_message can consist of several words not necessarily in quotes. See also C documentation for Error directive

std::iswprint

Defined in header <cwctype> int iswprint( std::wint_t ch ); Checks if the given wide character can be printed, i.e. it is either a number (0123456789), an uppercase letter (ABCDEFGHIJKLMNOPQRSTUVWXYZ), a lowercase letter (abcdefghijklmnopqrstuvwxyz), a punctuation character(!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~), space or any printable character specific to the current C locale. Parameters ch - wide character Return value Non-zero value if the wide charac

std::operator&lt;&lt;(std::error_code)

Defined in header <system_error> template< class CharT, class Traits > std::basic_ostream<CharT,Traits>& operator<<( basic_ostream<CharT,Traits>& os, const error_code& ec ); (since C++11) Performs stream output operation on error code ec. Equivalent to os << ec.category().name() << ':' << ec.value. Parameters os - output stream to insert data to ec - error code Return value os.

std::basic_iostream::basic_iostream

explicit basic_iostream( std::basic_streambuf<CharT,Traits>* sb ); (1) basic_iostream( const basic_iostream& other ) = delete; (2) (since C++11) protected: basic_iostream( basic_iostream&& other ); (3) (since C++11) Constructs new stream object. 1) Initializes with streambuf sb. The base classes are initialized as basic_istream<CharT,Traits>(sb) and basic_ostream<CharT,Traits>(sb). After the call rdbuf() == sb and gcount() == 0. 2) Copy constr

std::cbrt

Defined in header <cmath> float cbrt( float arg ); (1) (since C++11) double cbrt( double arg ); (2) (since C++11) long double cbrt( long double arg ); (3) (since C++11) double cbrt( Integral arg ); (4) (since C++11) Computes the cubic root 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-point or I

Pointer declaration

Declares a variable of a pointer or pointer-to-member type. Syntax A pointer declaration is any simple declaration whose declarator has the form. * attr(optional) cv(optional) declarator (1) nested-name-specifier * attr(optional) cv(optional) declarator (2) 1) Pointer declarator: the declaration S* D; declares D as a pointer to the type determined by decl-specifier-seq S. 2) Pointer to member declarator: the declaration S C::* D; declares D as a pointer to member of C of type

std::char_traits::find

static const char_type* find( const char_type* p, std::size_t count, const char_type& ch ); Searches for character ch within the first count characters of the sequence pointed to by p. Parameters p - pointer to a character string to search count - the number of characters to analyze ch - the character to search for Return value A pointer to the first character in the range specified by [p, p + count) that compares equal to ch, or NULL if not found. Except