std::not1

Defined in header <functional> template< class Predicate > std::unary_negate<Predicate> not1(const Predicate& pred); (until C++14) template< class Predicate > constexpr std::unary_negate<Predicate> not1(const Predicate& pred); (since C++14) not1 is a helper function to create a function object that returns the complement of the unary predicate function passed. The function object created is of type std::unary_negate<Predicate>. Th

std::normal_distribution::param

param_type param() const; (1) (since C++11) void param( const param_type& params ); (2) (since C++11) Manages the associated distribution parameter set. 1) Returns the associated parameter set. 2) Sets the associated parameter set to params. Parameters params - new contents of the associated parameter set Return value 1) The associated parameter set. 2) (none). Complexity Constant.

std::nothrow

Defined in header <new> extern const std::nothrow_t nothrow; std::nothrow is a constant of type std::nothrow_t used to disambiguate the overloads of throwing and non-throwing allocation functions. Example #include <iostream> #include <new> int main() { try { while (true) { new int[100000000ul]; // throwing overload } } catch (const std::bad_alloc& e) { std::cout << e.what() << '\n'; }

std::not2

Defined in header <functional> template< class Predicate > std::binary_negate<Predicate> not2(const Predicate& pred); (until C++14) template< class Predicate > constexpr std::binary_negate<Predicate> not2(const Predicate& pred); (since C++14) not2 is a helper function to create a function object that returns the complement of the binary predicate function passed. The function object created is of type std::binary_negate<Predicate>

std::normal_distribution::mean

RealType mean() const; (1) (since C++11) RealType stddev() const; (2) (since C++11) Returns the parameters the distribution was constructed with. 1) Returns the mean μ distribution parameter. The mean specifies the location of the peak. The default value is 0.0. 2) Returns the deviation σ distribution parameter. The default value is 1.0. Parameters (none). Return value 1) The mean μ distribution parameter. 2) The deviation σ distribution parameter. See also param

std::normal_distribution

Defined in header <random> template< class RealType = double > class normal_distribution; (since C++11) Generates random numbers according to the Normal (or Gaussian) random number distribution. It is defined as: f(x; μ,σ) = 1σ√2π exp⎛⎜⎝- 12 ⎛⎜⎝ x-μσ ⎞⎟⎠2⎞⎟⎠ Here μ is the mean and σ is the standard deviation (stddev). std::normal_distribution satisfies all requirements of RandomNumberDistribution. Template parameters RealType - The result type genera

std::normal_distribution::max

result_type max() const; (since C++11) Returns the maximum value potentially generated by the distribution. Parameters (none). Return value The maximum value potentially generated by the distribution. Complexity Constant. See also min returns the minimum potentially generated value (public member function)

std::normal_distribution::min

result_type min() const; (since C++11) Returns the minimum value potentially generated by the distribution. Parameters (none). Return value The minimum value potentially generated by the distribution. Complexity Constant. See also max returns the maximum potentially generated value (public member function)

std::normal_distribution::normal_distribution

explicit normal_distribution( RealType mean = 0.0, RealType stddev = 1.0 ); (1) (since C++11) explicit normal_distribution( const param_type& params ); (2) (since C++11) Constructs a new distribution object. The first version uses mean and stddev as the distribution parameters, the second version uses params as the distribution parameters. Parameters mean - the μ distribution parameter (mean) stddev - the σ distribution parameter (standard deviation) params -

std::nextafter

Defined in header <cmath> float nextafter( float from, float to ); (1) (since C++11) double nextafter( double from, double to ); (2) (since C++11) long double nextafter( long double from, long double to ); (3) (since C++11) Promoted nextafter( Arithmetic from, Arithmetic to ); (4) (since C++11) float nexttoward( float from, long double to ); (5) (since C++11) double nexttoward( double from, long double to ); (6) (since C++