std::nothrow

Defined in header <new> extern const std::nothrow_t nothrow; std::nothrow is a constant of type std::nothrow_t used to disambiguate the overloads of throwing and non-throwing allocation functions. Example #include <iostream> #include <new> int main() { try { while (true) { new int[100000000ul]; // throwing overload } } catch (const std::bad_alloc& e) { std::cout << e.what() << '\n'; }

std::nan

Defined in header <cmath> float nanf( const char* arg ); (since C++11) double nan( const char* arg ); (since C++11) long double nanl( const char* arg ); (since C++11) Converts the implementation-defined character string arg into the corresponding quiet NaN value, as if by calling std::strtod, std::strtof, or std::strtold, respectively, as follows: The call std::nan("string") is equivalent to the call std::strtod("NAN(string)", (char**)NULL);. The call std::nan("

std::geometric_distribution

Defined in header <random> template< class IntType = int > class geometric_distribution; (since C++11) Produces random non-negative integer values i, distributed according to discrete probability function: P(i|p) = p · (1 − p). i The value represents the number of yes/no trials (each succeeding with probability p) which are necessary to obtain a single success. std::geometric_distribution<>(p) is exactly equivalent to std::negative_binomial_distribution<

std::shared_mutex::lock

void lock(); (since C++17) Locks the mutex. If another thread has already locked the mutex, a call to lock will block execution until the lock is acquired. If lock is called by a thread that already owns the mutex in any mode (shared or exclusive), the behavior is undefined. Prior unlock() operation on the same mutex synchronizes-with (as defined in std::memory_order) this operation. Parameters (none). Return value (none). Exceptions Throws std::system_error when errors occur,

std::atan(std::valarray)

Defined in header <valarray> template< class T > valarray<T> atan( const valarray<T>& va ); For each element in va computes arc tangent of the value of the element. Parameters va - value array to apply the operation to Return value Value array containing arc tangents of the values in va. Notes Unqualified function (atan) is used to perform the computation. If such function is not available, std::atan is used due to argument dependent l

std::scanf

Defined in header <cstdio> ​int scanf( const char* format, ... );​ (1) int fscanf( std::FILE* stream, const char* format, ... ); (2) int sscanf( const char* buffer, const char* format, ... ); (3) Reads data from the a variety of sources, interprets it according to format and stores the results into given locations. 1) Reads the data from stdin 2) Reads the data from file stream stream 3) Reads the data from null-terminated character string buffer Paramet

std::basic_string::find_first_not_of

size_type find_first_not_of( const basic_string& str, size_type pos = 0 ) const; (1) size_type find_first_not_of( const CharT* s, size_type pos, size_type count ) const; (2) size_type find_first_not_of( const CharT* s, size_type pos = 0 ) const; (3) size_type find_first_not_of( CharT ch, size_type pos = 0 ) const; (4) Finds the first character equal to none of the characters in the given character sequence. The search considers only the interval [pos, size()). If t

std::strtoimax

Defined in header <cinttypes> std::intmax_t strtoimax( const char* nptr, char** endptr, int base ); (since C++11) std::uintmax_t strtoumax( const char* nptr, char** endptr, int base ); (since C++11) Interprets an integer value in a byte string pointed to by nptr. Discards any whitespace characters (as identified by calling isspace()) until the first non-whitespace character is found, then takes as many characters as possible to form a valid base-n (where n=base) integ

std::numeric_limits::denorm_min

static T denorm_min(); (until C++11) static constexpr T denorm_min(); (since C++11) Returns the minimum positive subnormal value of the type T, if std::numeric_limits<T>::has_denorm != std::denorm_absent, otherwise returns std::numeric_limits<T>::min(). Only meaningful for floating-point types. Return value T std::numeric_limits<T>::denorm_min() /* non-specialized */ T(); bool false char ​0​ signed char ​0​ unsigned char ​0​ wchar_t

std::atomic_fetch_or

Defined in header <atomic> (1) (since C++11) template< class Integral > Integral atomic_fetch_or( std::atomic<Integral>* obj, Integral arg ); template< class Integral > Integral atomic_fetch_or( volatile std::atomic<Integral>* obj, Integral arg ); (2) (since C++11) template< class Integral > Integral atomic_fetch_or_explicit( std::atomic<Integral>* obj, Integral arg,