std::acos(std::complex)

Defined in header <complex> template< class T > complex<T> acos( const complex<T>& z ); (since C++11) Computes complex arc cosine of a complex value z. Branch cuts exist outside the interval [−1 ; +1] along the real axis. Parameters z - complex value Return value If no errors occur, complex arc cosine of z is returned, in the range [0 ; ∞) along the real axis and in the range [−iπ ; iπ] along the imaginary axis. Error handling and spec

cstring

This header was originally in the C standard library as <string.h>. This header is for C-style null-terminated byte strings. Macros NULL implementation-defined null pointer constant (macro constant) Types size_t unsigned integer type returned by the sizeof operator (typedef) Functions String manipulation strcpy copies one string to another (function) strncpy copies a certain amount of characters from one string to another (function) strcat concat

C-style file input/output

The C I/O subset of the C++ standard library implements C-style stream input/output operations. The <cstdio> header provides generic file operation support and supplies functions with narrow and multibyte character input/output capabilities, and the <cwchar> header provides functions with wide character input/output capabilities. C streams are objects of type std::FILE that can only be accessed and manipulated through pointers of type std::FILE* (Note: while it may be possible to cr

Functions

Functions are C++ entities that associate a sequence of statements (a function body) with a name and a list of zero or more function parameters. // function name: "isodd" // parameter list has one parameter, with name "n" and type int // the return type is bool bool isodd(int n) { // the body of the function begins return n % 2; } // the body of the function ends When a function is invoked, e.g. in a function-call expression, the parameters are init

std::is_sorted_until

Defined in header <algorithm> template< class ForwardIt > ForwardIt is_sorted_until( ForwardIt first, ForwardIt last ); (1) (since C++11) template< class ForwardIt, class Compare > ForwardIt is_sorted_until( ForwardIt first, ForwardIt last, Compare comp ); (2) (since C++11) Examines the range [first, last) and finds the largest range beginning at first in which the elements are sorted in ascending order. The first version of the

Bit field

Declares a class data member with explicit size, in bits. Adjacent bit field members may be packed to share and straddle the individual bytes. A bit field declaration is a class data member declaration which uses the following declarator: identifier(optional) attr(optional) : size (1) The type of the bit field is introduced by the decl-specifier-seq of the declaration syntax. attr(C++11) - optional sequence of any number of attributes identifier - the name of the bit field th

std::wcstof

Defined in header <cwchar> float wcstof( const wchar_t* str, wchar_t** str_end ); (since C++11) double wcstod( const wchar_t* str, wchar_t** str_end ); long double wcstold( const wchar_t* str, wchar_t** str_end ); (since C++11) Interprets a floating point value in a wide string pointed to by str. Function discards any whitespace characters (as determined by std::isspace()) until first non-whitespace character is found. Then it takes as many characters

std::codecvt::length

Defined in header <locale> public: int length( StateT& state, const ExternT* from, const ExternT* from_end, std::size_t max ) const; (1) protected: virtual int do_length( StateT& state, const ExternT* from, const ExternT* from_end, std::size_t max ) const; (2) 1) public member function, calls the member function do_length of the most derived class. 2) att

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

Using-declaration

Introduces a name that is defined elsewhere into the declarative region where this using-declaration appears. using typename(optional) nested-name-specifier unqualified-id ; nested-name-specifier - a sequence of names and scope resolution operators ::, ending with a scope resolution operator. A single :: refers to the global namespace. unqualified-id - an id-expression typename - the keyword typename may be used as necessary to resolve dependent names, when the using-de