std::div

Defined in header <cstdlib> std::div_t div( int x, int y ); (1) std::ldiv_t div( long x, long y ); (2) std::lldiv_t div( long long x, long long y ); (3) (since C++11) std::ldiv_t ldiv( long x, long y ); (4) std::lldiv_t lldiv( long long x, long long y ); (5) (since C++11) Defined in header <cinttypes> std::imaxdiv_t div( std::intmax_t x, std::intmax_t y ); (6) (since C++11) std::imaxdiv_t imaxdiv( std::intmax_t x, std::in

std::basic_ostringstream

Defined in header <sstream> template< class CharT, class Traits = std::char_traits<CharT> > class basic_ostringstream; (until C++11) template< class CharT, class Traits = std::char_traits<CharT>, class Allocator = std::allocator<CharT> > class basic_ostringstream; (since C++11) The class template std::basic_ostringstream implements output operations on memory (std::basic_string) based streams. It essentially wraps

std::slice_array::operators

void operator+=( const std::valarray<T>& other ); void operator-=( const std::valarray<T>& other ); void operator*=( const std::valarray<T>& other ); void operator/=( const std::valarray<T>& other ); void operator%=( const std::valarray<T>& other ); void operator&=( const std::valarray<T>& other ); void operator|=( const std::valarray<T>& other ); void operator^=( const std::vala

Implementation defined behavior control

Implementation defined behavior is controlled by #pragma directive. Syntax #pragma pragma_params (1) _Pragma ( string-literal ) (2) (since C++11) 1) Behaves in implementation-defined manner 2) Removes the L prefix (if any), the outer quotes, and leading/trailing whitespace from string-literal, replaces each \" with " and each \\ with \, then tokenizes the result (as in translation stage 3), and then uses the result as if the input to #pragma in (1) Explanation Pragma dire

std::tie

Defined in header <tuple> template< class... Types > tuple<Types&...> tie( Types&... args ); (since C++11) (until C++14) template< class... Types > constexpr tuple<Types&...> tie( Types&... args ); (since C++14) Creates a tuple of lvalue references to its arguments or instances of std::ignore. Parameters args - zero or more lvalue arguments to construct the tuple from Return value A std::tuple object containing lva

std::basic_istream::sync

int sync(); Synchronizes the input buffer with the associated data source. Behaves as UnformattedInputFunction, except that gcount() is not affected. After constructing and checking the sentry object, if rdbuf() is a null pointer, returns -1. Otherwise, calls rdbuf()->pubsync(). If that function returns -1, calls setstate(badbit) and returns -1. Otherwise, returns ​0​. Parameters (none). Return value ​0​ on success, -1 on failure or if the stream does not support this operation

std::multiset::get_allocator

allocator_type get_allocator() const; Returns the allocator associated with the container. Parameters (none). Return value The associated allocator. Complexity Constant.

std::geometric_distribution::geometric_distribution

explicit geometric_distribution( double p = 0.5 ); (1) (since C++11) explicit geometric_distribution( const param_type& params ); (2) (since C++11) Constructs new distribution object. The first version uses p as the distribution parameter, the second version uses params as the distribution parameter. Parameters p - the p distribution parameter (probability of a trial generating true) params - the distribution parameter set Notes Requires that 0 < p <

std::numeric_limits::round_style

static const std::float_round_style round_style (until C++11) static constexpr std::float_round_style round_style (since C++11) The value of std::numeric_limits<T>::round_style identifies the rounding style used by the floating-point type T whenever a value that is not one of the exactly repesentable values of T is stored in an object of that type. Standard specializations T value of std::numeric_limits<T>::round_style /* non-specialized */ std::round_toward_

std::numeric_limits::lowest

static constexpr T lowest() (since C++11) Returns the lowest finite value representable by the numeric type T, that is, a finite value x such that there is no other finite value y where y < x. This is different from std::numeric_limits<T>::min() for floating-point types. Only meaningful for bounded types. Return value T std::numeric_limits<T>::lowest() /* non-specialized */ T(); bool false char CHAR_MIN signed char SCHAR_MIN unsigned char ​0​ w