std::function

Defined in header <functional> template< class > class function; /* undefined */ (since C++11) template< class R, class... Args > class function<R(Args...)> (since C++11) Class template std::function is a general-purpose polymorphic function wrapper. Instances of std::function can store, copy, and invoke any Callable target -- functions, lambda expressions, bind expressions, or other function objects, as well as pointers to member functions and point

std::iswalnum

Defined in header <cwctype> int iswalnum( std::wint_t ch ); Checks if the given wide character is an alphanumeric character, i.e. either a number (0123456789), an uppercase letter (ABCDEFGHIJKLMNOPQRSTUVWXYZ), a lowercase letter (abcdefghijklmnopqrstuvwxyz) or any alphanumeric character specific to the current locale. Parameters ch - wide character Return value Non-zero value if the wide character is a alphanumeric character, zero otherwise. Example #incl

std::basic_stringbuf::basic_stringbuf

explicit basic_stringbuf( std::ios_base::openmode which = std::ios_base::in | std::ios_base::out ); (1) explicit basic_stringbuf( const std::basic_string<CharT, traits, Allocator>& new_str, std::ios_base::openmode which = std::ios_base::in | std::ios_base::out ); (2) basic_stringbuf( const basic_stringbuf& rhs ) = delete; (3) (s

Phases of translation

The C++ source file is processed by the compiler as if the following phases take place, in this exact order: Phase 1 1) The individual bytes of the source code file are mapped (in implementation defined manner) to the characters of the basic source character set. In particular, OS-dependent end-of-line indicators are replaced by newline characters. The basic source character set consists of 96 characters: a) 5 whitespace characters (space, horizontal tab, vertical tab, form feed, new-line)

std::strstreambuf::strstreambuf

explicit strstreambuf( std::streamsize alsize = 0 ); (1) strstreambuf( void* (*palloc)(std::size_t), void (*pfree)(void*) ); (2) strstreambuf( char* gnext, std::streamsize n, char* pbeg = 0 ); (3) strstreambuf( signed char* gnext, std::streamsize n, signed char* pbeg = 0 ); (4) strstreambuf( unsigned char* gnext, std::streamsize n, unsigned char* pbeg = 0 ); (5) strstreambuf( const char* gnext, std::streamsize n ); (6) strstreambuf( const signed char* gnext,

std::chrono::time_point::operators (operator-)

time_point& operator+=( const duration& d ); (1) (since C++11) time_point& operator-=( const duration& d ); (2) (since C++11) Modifies the time point by the given duration. 1) Applies the offset d to pt. Effectively, d is added to the internally stored duration d_ as d_ += d. 2) Applies the offset d to pt in negative direction. Effectively, d is subtracted from internally stored duration d_ as d_ -= d. Parameters d - a time offset to apply Return val

std::stof

Defined in header <string> float stof( const std::string& str, std::size_t* pos = 0 ); float stof( const std::wstring& str, std::size_t* pos = 0 ); (1) (since C++11) double stod( const std::string& str, std::size_t* pos = 0 ); double stod( const std::wstring& str, std::size_t* pos = 0 ); (2) (since C++11) long double stold( const std::string& str, std::size_t* pos = 0 ); long double stold( const std::wstring& str, std::size

static_cast conversion

Converts between types using a combination of implicit and user-defined conversions. Syntax static_cast < new_type > ( expression ) Returns a value of type new_type. Explanation Only the following conversions can be done with static_cast, except when such conversions would cast away constness or volatility. 1) If a temporary object of type new_type can be declared and initialized with expression, as by new_type Temp(expression);, which may involve implicit conversions, a ca

FE_DIVBYZERO

Defined in header <cfenv> #define FE_DIVBYZERO /*implementation defined power of 2*/ (since C++11) #define FE_INEXACT /*implementation defined power of 2*/ (since C++11) #define FE_INVALID /*implementation defined power of 2*/ (since C++11) #define FE_OVERFLOW /*implementation defined power of 2*/ (since C++11) #define FE_UNDERFLOW /*implementation defined power of 2*/ (since C++11) #define FE_ALL_EXCEPT FE_DIVBYZERO | FE_INEXACT

Localization library

The locale facility includes internationalization support for character classification and string collation, numeric, monetary, and date/time formatting and parsing, and message retrieval. Locale settings control the behavior of stream I/O, regular expression library, and other components of the C++ standard library. Locales Defined in header <locale> Locales and facets locale set of polymorphic facets that encapsulate cultural differences (class) use_facet obtains