std::generate_canonical

template< class RealType, size_t bits, class Generator > RealType generate_canonical( Generator& g ); (since C++11) Generates a random floating point number in range [0; 1). To generate enough entropy, generate_canonical() will call g() exactly k times, where k = max(1, ⌈ b / log2 R ⌉) and. b = std::min<std::size_t>(bits, std::numeric_limits<RealType>::digits) R = g.max() - g.min() + 1. Parameters g - generator to use to acquire entropy Return va

std::num_put::num_put

Defined in header <locale> explicit num_put( std::size_t refs = 0 ); Creates a std::num_put facet and forwards the starting reference count refs to the base class constructor, locale::facet::facet(). Parameters refs - starting reference count

std::bind1st

Defined in header <functional> template< class F, class T > std::binder1st<F> bind1st( const F& f, const T& x ); (1) (until C++17)(deprecated since C++11) template< class F, class T > std::binder2nd<F> bind2nd( const F& f, const T& x ); (2) (until C++17)(deprecated since C++11) Binds a given argument x to a first or second parameter of the given binary function object f. That is, stores x within the resulting wrapper, which, if

std::basic_streambuf::setg

void setg( char_type* gbeg, char_type* gcurr, char_type* gend ); Sets the values of the pointers defining the get area. Specifically, after the call eback() == gbeg, gptr() == gcurr, egptr() == gend. Parameters gbeg - pointer to the new beginning of the get area gcurr - pointer to the new current character (get pointer) in the get area gend - pointer to the new end of the get area Return value (none). Example #include <iostream> #include <sstream&

std::map::end

iterator end(); const_iterator end() const; const_iterator cend() const; (since C++11) Returns an iterator to the element following the last element of the container. This element acts as a placeholder; attempting to access it results in undefined behavior. Parameters (none). Return value Iterator to the element following the last element. Exceptions (none) (until C++11) noexcept specification: noexcept (since C++11) Complexity Constant. See also begin

std::swap(std::valarray)

template< class T > void swap( valarray<T> &lhs, valarray<T> &rhs ); Specializes the std::swap algorithm for std::valarray. Swaps the contents of lhs and rhs. Calls lhs.swap(rhs). Parameters lhs, rhs - valarrays whose contents to swap Return value (none). Complexity Constant. See also swap swaps with another valarray (public member function)

std::unordered_multiset::max_load_factor

float max_load_factor() const; (1) (since C++11) void max_load_factor( float ml ); (2) (since C++11) Manages the maximum load factor (number of elements per bucket). The container automatically increases the number of buckets if the load factor exceeds this threshold. 1) Returns current maximum load factor. 2) Sets the maximum load factor to ml. Parameters ml - new maximum load factor setting Return value 1) current maximum load factor. 2) none. Complexity Constan

std::basic_streambuf::sgetn

std::streamsize sgetn( char_type* s, std::streamsize count ); (1) protected: virtual std::streamsize xsgetn( char_type* s, std::streamsize count ); (2) 1) Calls xsgetn(s, count) of the most derived class. 2) Reads count characters from the input sequence and stores them into a character array pointed to by s. The characters are read as if by repeated calls to sbumpc(). That is, if less than count characters are immediately available, the function calls uflow() to provide more un

inline specifier

Declares an inline function. Syntax inline function_declaration (1) class { function_definition }; (2) constexpr function_declaration (3) (since C++11) 1) A function at global scope can be declared inline using the keyword inline 2) A function defined entirely inside a class/struct/union definition, whether it's a member function or a non-member friend function, is always inline. 3) A function declared constexpr is always inline. Description An inline function is a

std::isprint

Defined in header <cctype> int isprint( int ch ); Checks if is a printable character as classified by the currently installed C locale. In the default, "C" locale, the following characters are printable: digits (0123456789) uppercase letters (ABCDEFGHIJKLMNOPQRSTUVWXYZ) lowercase letters (abcdefghijklmnopqrstuvwxyz) punctuation characters (!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~) space () The behavior is undefined if the value of ch is not representable as un