std::as_const

Defined in header <utility> template <class T> constexpr std::add_const_t<T>& as_const(T& t) noexcept; (1) (since C++17) template <class T> void as_const(const T&&) = delete; (2) (since C++17) 1) Forms lvalue reference to const type of t 2) const rvalue reference overload is deleted to disallow rvalue arguments Possible implementation template <class T> constexpr std::add_const_t<T>& as_const(T& t) noexcept

std::async

Defined in header <future> (1) template< class Function, class... Args> std::future<typename std::result_of<Function(Args...)>::type> async( Function&& f, Args&&... args ); (since C++11) (until C++14) template< class Function, class... Args> std::future<std::result_of_t<std::decay_t<Function>(std::decay_t<Args>...)>> async( Function&& f, Args&&... args ); (since C++14) (2) templat

std::asinh(std::complex)

Defined in header <complex> template< class T > complex<T> asinh( const complex<T>& z ); (since C++11) Computes complex arc hyperbolic sine of a complex value z with branch cuts outside the interval [−i; +i] along the imaginary axis. Parameters z - complex value Return value If no errors occur, the complex arc hyperbolic sine of z is returned, in the range of a strip mathematically unbounded along the real axis and in the interval [−iπ/2

std::asinh

Defined in header <cmath> float asinh( float arg ); (1) (since C++11) double asinh( double arg ); (2) (since C++11) long double asinh( long double arg ); (3) (since C++11) double asinh( Integral arg ); (4) (since C++11) Computes the inverse hyperbolic sine 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 fl

std::asin(std::valarray)

Defined in header <valarray> template< class T > valarray<T> asin( const valarray<T>& va ); For each element in va computes arc sine of the value of the element. Parameters va - value array to apply the operation to Return value Value array containing arc sines of the values in va. Notes Unqualified function (asin) is used to perform the computation. If such function is not available, std::asin is used due to argument dependent lookup.

std::asin(std::complex)

Defined in header <complex> template< class T > complex<T> asin( const complex<T>& z ); (since C++11) Computes complex arc sine of a complex value z. Branch cut exists outside the interval [−1 ; +1] along the real axis. Parameters z - complex value Return value If no errors occur, complex arc sine of z is returned, in the range of a strip unbounded along the imaginary axis and in the interval [−π/2; +π/2] along the real axis. Errors and

std::asin

Defined in header <cmath> float asin( float arg ); (1) double asin( double arg ); (2) long double asin( long double arg ); (3) double asin( Integral arg ); (4) (since C++11) Computes the principal value of the arc sine 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 floating-point or Integral type Ret

std::asctime

Defined in header <ctime> char* asctime( const std::tm* time_ptr ); Converts given calendar time std::tm to a textual representation of the following fixed 25-character form: Www Mmm dd hh:mm:ss yyyy\n. Www - three-letter English abbreviated day of the week from time_ptr->tm_wday, one of Mon, Tue, Wed, Thu, Fri, Sat, Sun. Mmm - three-letter English abbreviated month name from time_ptr->tm_mon, one of Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec. dd

std::array::swap

void swap( array& other ); (since C++11) Exchanges the contents of the container with those of other. Does not cause iterators and references to associate with the other container. Parameters other - container to exchange the contents with Return value (none). Exceptions noexcept specification: noexcept(noexcept(std::swap(declval<T&>(), declval<T&>()))) For zero-sized arrays, noexcept specification: noexcept(noexcept(true)) Complexity Li

std::array::size

constexpr size_type size(); (since C++11) (until C++14) constexpr size_type size() const; (since C++14) Returns the number of elements in the container, i.e. std::distance(begin(), end()). Parameters (none). Return value The number of elements in the container. Exceptions noexcept specification: noexcept Complexity Constant. Example The following code uses size to display the number of elements in a std::array: #include <array> #include <iostream> i