std::future_error::code

const std::error_code& code() const; (since C++11) Returns the stored error code. Parameters (none). Return value The stored error code. Exceptions noexcept specification: noexcept See also what returns the explanatory string specific to the error code (public member function)

std::set_unexpected

Defined in header <exception> std::unexpected_handler set_unexpected( std::unexpected_handler f ); (deprecated since C++11) Makes f the new global std::unexpected_handler and returns the previously installed std::unexpected_handler. This function is thread-safe. Every call to std::set_unexpected synchronizes-with (see std::memory_order) the subsequent calls to std::set_unexpected and std::get_unexpected. (since C++11) Parameters f - pointer to function of type s

std::btowc

Defined in header <cwchar> std::wint_t btowc( int c ); Widens a single-byte character c to its wide character equivalent. Most multibyte character encodings use single-byte codes to represent the characters from the ASCII character set. This function may be used to convert such characters to wchar_t. Parameters c - single-byte character to widen Return value WEOF if c is EOF. Wide character representation of c if (unsigned char)c is a valid single-byte charact

std::shared_ptr::get

T* get() const; (since C++11) Returns a pointer to the managed object or a null pointer if no object is being managed. Parameters (none). Return value A pointer to the managed object or null. Exceptions noexcept specification: noexcept Example #include <iostream> #include <memory> #include <string> typedef std::shared_ptr<int> IntPtr; void output(const std::string& msg, int* pInt) { std::cout << msg << *pInt << "\n";

std::isinf

Defined in header <cmath> bool isinf( float arg ); (1) (since C++11) bool isinf( double arg ); (2) (since C++11) bool isinf( long double arg ); (3) (since C++11) bool isinf( Integral arg ); (4) (since C++11) 1-3) Determines if the given floating point number arg is a positive or negative infinity. 4) A set of overloads or a function template accepting the from argument of any integral type. Equivalent to (2) (the argument is cast to double). Paramete

std::begin(std::initializer_list)

template< class E > const E* begin( initializer_list<E> il ); (since C++11) (until C++14) template< class E > constexpr const E* begin( initializer_list<E> il ); (since C++14) The overload of std::begin for initializer_list returns a pointer to the first element of il. Parameters il - an initializer_list Return value il.begin(). Exceptions noexcept specification: noexcept Example #include <iostream> #include <initializer_l

std::bernoulli_distribution::p

double p() const; (since C++11) Returns the p parameter the distribution was constructed with. It defines the probability of generating true. The default value is 0.5. Parameters (none). Return value Floating point value identifying the p distribution parameter. See also param gets or sets the distribution parameter object (public member function)

std::array::operator[]

reference operator[]( size_type pos ); (since C++11) const_reference operator[]( size_type pos ) const; (since C++11) (until C++14) constexpr const_reference operator[]( size_type pos ) const; (since C++14) Returns a reference to the element at specified location pos. No bounds checking is performed. Parameters pos - position of the element to return Return value Reference to the requested element. Complexity Constant. Notes Unlike std::map::operato

std::atomic_load

Defined in header <atomic> (1) (since C++11) template< class T > T atomic_load( const std::atomic<T>* obj ); template< class T > T atomic_load( const volatile std::atomic<T>* obj ); (2) (since C++11) template< class T > T atomic_load_explicit( const std::atomic<T>* obj, std::memory_order order ); template< class T > T atomic_load_explicit( const volatile std::atomic<T>* obj,

std::cin

Defined in header <iostream> extern std::istream cin; (1) extern std::wistream wcin; (2) The global objects std::cin and std::wcin control input from a stream buffer of implementation-defined type (derived from std::streambuf), associated with the standard C input stream stdin. These objects are guaranteed to be constructed before the first constructor of a static object is called and they are guaranteed to outlive the last destructor of a static object, so that it is