Floating-point environment

The floating-point environment is the set of floating-point status flags and control modes supported by the implementation. It is thread-local, each thread inherits the initial state of its floating-point environment from the parent thread. Floating-point operations modify the floating-point status flags to indicate abnormal results or auxiliary information. The state of floating-point control modes affects the outcomes of some floating-point operations. The floating-point environment access an

std::arg(std::complex)

Defined in header <complex> template< class T > T arg( const complex<T>& z ); (1) long double arg( long double z ); (2) (since C++11) template< class DoubleOrIngeter > double arg( DoubleOrInteger z ); (3) (since C++11) float arg( float z ); (4) (since C++11) Calculates the phase angle (in radians) of the complex number z. (since C++11)Additional overloads are provided for float, double, long double, and all integer types, which are t

std::collate::compare

Defined in header <locale> public: int compare( const CharT* low1, const CharT* high1, const CharT* low2, const CharT* high2 ) const; (1) protected: virtual int do_compare( const CharT* low1, const CharT* high1, const CharT* low2, const CharT* high2 ) const; (2) 1) Public member function, calls the protected virtual member function do_compare of the most derived class. 2) Compares the character sequence [low1, high1) to the chara

std::ios_base::iword

long& iword( int index ); First, allocates or resizes the private storage (dynamic array of long or another indexable data structure) sufficiently to make index a valid index, then returns a reference to the long element of the private storage with the index index. The reference may be invalidated by any operation on this ios_base object, including another call to iword(), but the stored values are retained, so that reading from iword(index) with the same index later will produce th

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

std::complex::operators (unary)

template< class T > complex<T> operator+( const complex<T>& val ); (1) template< class T > complex<T> operator-( const complex<T>& val ); (2) Implements the analogs of the unary arithmetic operators for complex numbers. 1) Returns the value of its argument 2) Negates the argument Parameters val - the complex number argument Return value 1) a copy of the argument, complex<T>(val) 2) negated argument, complex<T&

char

Usage char type: as the declaration of the type

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::is_member_function_pointer

Defined in header <type_traits> template< class T > struct is_member_function_pointer; (since C++11) Checks whether T is a non-static member function pointer. Provides the member constant value which is equal to true, if T is a non-static member function pointer type. Otherwise, value is equal to false. Template parameters T - a type to check Helper variable template template< class T > constexpr bool is_member_function_pointer_v = is_member_fun