std::discard_block_engine::discard_block_engine

discard_block_engine(); (1) (since C++11) explicit discard_block_engine( result_type s ); (2) (since C++11) template< class Sseq > explicit discard_block_engine( Sseq& seq ); (3) (since C++11) explicit discard_block_engine( const Engine& e ); (4) (since C++11) explicit discard_block_engine( Engine&& e ); (5) (since C++11) Constructs new pseudo-random engine adaptor. 1) Default constructor. The underlying engine is also default-constructed.

std::shared_timed_mutex::lock_shared

void lock_shared(); (since C++14) Acquires shared ownership of the mutex. If another thread is holding the mutex in exclusive ownership, a call to lock_shared will block execution until shared ownership can be acquired. If lock_shared is called by a thread that already owns the mutex in any mode (exclusive or shared), the behavior is undefined. If more than the implementation-defined maximum number of shared owners already locked the mutex in shared mode, lock_shared blocks execution un

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::seed_seq::param

template< class OutputIt > void param( OutputIt dest ) const; (since C++11) Outputs the initial seed sequence that's stored in the std::seed_seq object. Parameters dest - output iterator such that the expression *dest=rt is valid for a value rt of result_type Type requirements - OutputIt must meet the requirements of OutputIterator. Return value (none). Exceptions Throws only if an operation on dest throws. Example #include <random> #include <ios

std::bad_exception

Defined in header <exception> class bad_exception; std::bad_exception is the type of the exception thrown by the C++ runtime in the following situations: 1) If a dynamic exception specification is violated and std::unexpected throws or rethrows an exception that still violates the exception specification, but the exception specification allows std::bad_exception, std::bad_exception is thrown. 2) If std::exception_ptr stores a copy of the caught exception and if the copy c

std::wcscpy

Defined in header <cwchar> wchar_t *wcscpy( wchar_t *dest, const wchar_t *src ); Copies the wide string pointed to by src (including the terminating null wide character) to wide character array pointed to by dest. If the strings overlap, the behavior is undefined. Parameters dest - pointer to the wide character array to copy to src - pointer to the null-terminated wide string to copy from Return value dest. Example #include <iostream> #include

std::islessgreater

Defined in header <cmath> bool islessgreater( float x, float y ); (1) (since C++11) bool islessgreater( double x, double y ); (2) (since C++11) bool islessgreater( long double x, long double y ); (3) (since C++11) bool islessgreater( Arithmetic x, Arithmetic y ); (4) (since C++11) 1-3) Determines if the floating point number x is less than or greater than the floating-point number y, without setting floating-point exceptions. 4) A set of overloads or a f

std::basic_string::npos

static const size_type npos = -1; This is a special value equal to the maximum value representable by the type size_type. The exact meaning depends on context, but it is generally used either as end of string indicator by the functions that expect a string index or as the error indicator by the functions that return a string index. Example #include <iostream> #include <bitset> #include <string> int main() { // string search functions return npos if nothing i

std::basic_string::operator[]

reference operator[]( size_type pos ); (1) const_reference operator[]( size_type pos ) const; (2) Returns a reference to the character at specified location pos. No bounds checking is performed. 1) If pos == size(), the behavior is undefined. 2) If pos == size(), a reference to the character with value CharT() (the null character) is returned. (until C++11) If pos == size(), a reference to the character with value CharT() (the null character) is returned. For the first

std::istreambuf_iterator::istreambuf_iterator

(1) istreambuf_iterator(); (until C++11) constexpr istreambuf_iterator(); (since C++11) istreambuf_iterator( std::basic_istream<CharT,Traits>& is ); (2) istreambuf_iterator( std::basic_streambuf<CharT,Traits>* s ); (3) istreambuf_iterator( const istreambuf_iterator& ) = default; (4) (since C++11) 1) Constructs an end-of-stream iterator. 2) Initializes the iterator and stores the value of is.rdbuf() in a data member. If is.rdbuf() is null, th