queue

This header is part of the containers library. Includes <initializer_list>(C++11) Classes queue adapts a container to provide queue (FIFO data structure) (class template) priority_queue adapts a container to provide priority queue (class template) std::uses_allocator<std::queue> (C++11) specializes the std::uses_allocator type trait (function template) std::uses_allocator<std::priority_queue> (C++11) specializes the std::uses_allocator type tr

std::vwprintf

Defined in header <cwchar> int vwprintf( const wchar_t* format, va_list vlist ); (1) int vfwprintf( std::FILE* stream, const wchar_t* format, va_list vlist ); (2) int vswprintf( const wchar_t* buffer, std::size_t buf_size, const wchar_t* format, va_list vlist ); (3) Loads the data from locations, defined by vlist,, converts them to wide string equivalents and writes the results to a variety of sinks. 1) Writes the results to stdout. 2) Writes th

default initialization

This is the initialization performed when a variable is constructed with no initializer. Syntax T object ; (1) new T ; new T ( ) ; (until c++03). (2) Explanation Default initialization is performed in three situations: 1) when a variable with automatic, static, or thread-local storage duration is declared with no initializer. 2) when an object with dynamic storage duration is created by a new-expression with no initializer or when an object is created by a new-expression

std::unordered_set::bucket

size_type bucket( const Key& key ) const; (since C++11) Returns the index of the bucket for key key. Elements (if any) with keys equivalent to key are always found in this bucket. The returned value is valid only for instances of the container for which bucket_count() returns the same value. The behavior is undefined if bucket_count() is zero. Parameters key - the value of the key to examine Return value Bucket index for the key key. Complexity Constant. See also

std::exponential_distribution

Defined in header <random> template< class RealType = double > class exponential_distribution; (since C++11) Produces random non-negative floating-point values x, distributed according to probability density function: P(x|λ) = λe. -λx The value obtained is the time/distance until the next random event if random events occur at constant rate λ per unit of time/distance. For example, this distribution describes the time between the clicks of a Geiger counter or the

std::fmod

Defined in header <cmath> float fmod( float x, float y ); (1) double fmod( double x, double y ); (2) long double fmod( long double x, long double y ); (3) Promoted fmod( Arithmetic1 x, Arithmetic2 y ); (4) (since C++11) 1-3) Computes the floating-point remainder of the division operation x/y. 4) A set of overloads or a function template for all combinations of arguments of arithmetic type not covered by 1-3. If any argument has integral typ

std::scoped_allocator_adaptor::allocate

Defined in header <scoped_allocator> pointer allocate( size_type n ); (1) (since C++11) pointer allocate( size_type n, const_void_pointer hint ); (2) (since C++11) Uses the outer allocator to allocate uninitialized storage. 1) Calls std::allocator_traits<OuterAlloc>::allocate(outer_allocator(), n) 2) Additionally provides memory locality hint, by calling std::allocator_traits<OuterAlloc>::allocate(outer_allocator(), n, hint) Parameters n - the

std::log10

Defined in header <cmath> float log10( float arg ); (1) double log10( double arg ); (2) long double log10( long double arg ); (3) double log10( Integral arg ); (4) (since C++11) 1-3) Computes the common (base-10) logarithm 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 floating-point or Integral type

std::atanh

Defined in header <cmath> float atanh( float arg ); (1) (since C++11) double atanh( double arg ); (2) (since C++11) long double atanh( long double arg ); (3) (since C++11) double atanh( Integral arg ); (4) (since C++11) Computes the inverse hyperbolic tangent 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

std::bitset::to_ulong

unsigned long to_ulong() const Converts the contents of the bitset to an unsigned long integer. The first bit of the bitset corresponds to the least significant digit of the number and the last bit corresponds to the most significant digit. Parameters (none). Return value the converted integer. Exceptions throws std::overflow_error if the value can not be represented in unsigned long. Example #include <iostream> #include <bitset> int main() { for (unsigne