std::calloc

Defined in header <cstdlib> void* calloc( std::size_t num, std::size_t size ); Allocates memory for an array of num objects of size size and initializes it to all bits zero. If allocation succeeds, returns a pointer to the lowest (first) byte in the allocated memory block that is suitably aligned for any object type. If size is zero, the behavior is implementation defined (null pointer may be returned, or some non-null pointer may be returned that may not be used to access

std::expm1

Defined in header <cmath> float expm1( float arg ); (1) (since C++11) double expm1( double arg ); (2) (since C++11) long double expm1( long double arg ); (3) (since C++11) double expm1( Integral arg ); (4) (since C++11) 1-3) Computes the e (Euler's number, 2.7182818) raised to the given power arg, minus 1.0. This function is more accurate than the expression std::exp(arg)-1.0 if arg is close to zero. 4) A set of overloads or a function te

Order of evaluation

Order of evaluation of the operands of almost all C++ operators (including the order of evaluation of function arguments in a function-call expression and the order of evaluation of the subexpressions within any expression) is unspecified. The compiler can evaluate operands in any order, and may choose another order when the same expression is evaluated again. There are several exceptions to this rule (e.g. for the &&, ||, and , operators) which are noted below. Otherwise, there is no c

std::timed_mutex::try_lock_until

template< class Clock, class Duration > bool try_lock_until( const std::chrono::time_point<Clock,Duration>& timeout_time ); (since C++11) Tries to lock the mutex. Blocks until specified timeout_time has been reached or the lock is acquired, whichever comes first. On successful lock acquisition returns true, otherwise returns false. If timeout_time has already passed, this function behaves like try_lock(). The clock tied to timeout_time is used, which means that adjustmen

std::remove_copy

Defined in header <algorithm> template< class InputIt, class OutputIt, class T > OutputIt remove_copy( InputIt first, InputIt last, OutputIt d_first, const T& value ); (1) template< class InputIt, class OutputIt, class UnaryPredicate > OutputIt remove_copy_if( InputIt first, InputIt last, OutputIt d_first, UnaryPredicate p ); (2) Copies elements from the range [first, last), to another range beginning at d

std::discrete_distribution

Defined in header <random> template< class IntType = int > class discrete_distribution; (since C++11) std::discrete_distribution produces random integers on the interval [0, n), where the probability of each individual integer i is defined as wi/S, that is the weight of the ith integer divided by the sum of all n weights. std::discrete_distribution satisfies all requirements of RandomNumberDistribution. Template parameters IntType - The result type generated b

complex

This header is part of the numeric library. Classes complex a complex number type (class template) complex<float>complex<double>complex<long double> a complex number type (class template specialization) Functions Operations operator+operator- applies unary operators to complex numbers (function template) operator+operator-operator*operator/ performs complex number arithmetics on two complex values or a complex and a scalar (function template)

std::search_n

Defined in header <algorithm> template< class ForwardIt, class Size, class T > ForwardIt search_n( ForwardIt first, ForwardIt last, Size count, const T& value ); (1) template< class ForwardIt, class Size, class T, class BinaryPredicate > ForwardIt search_n( ForwardIt first, ForwardIt last, Size count, const T& value, BinaryPredicate p ); (2) Searches the range [first, last) for the first sequence of count identical elements, e

Member access operators

Accesses a member of its operand. Operator name Syntax Over​load​able Prototype examples (for class T) Inside class definition Outside class definition subscript a[b] Yes R& T::operator[](S b); N/A indirection *a Yes R& T::operator*(); R& operator*(T a); address-of &a Yes R* T::operator&(); R* operator&(T a); member of object a.b No N/A N/A member of pointer a->b Yes R* T::operator->(); N/A pointer to membe

std::log

Defined in header <cmath> float log( float arg ); (1) double log( double arg ); (2) long double log( long double arg ); (3) double log( Integral arg ); (4) (since C++11) 1-3) Computes the the natural (base e) 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 Retu