std::wstring_convert::converted

Defined in header <locale> std::size_t converted() const; Returns the number of source characters that were processed by the most recent from_bytes() or to_bytes(). Return value The number of characters consumed by the most recent conversion operation. Exceptions (none) (until C++14) noexcept specification: noexcept (since C++14) Example #include <iostream> #include <string> #include <locale> #include <codecvt> int main() { std:

std::auto_ptr::reset

void reset( T* p = 0 ); (deprecated) Replaces the held pointer by p. If the currently held pointer is not null pointer, delete get() is called. Parameters p - a pointer to an object to manage Return value (none). Exceptions (none). See also release releases ownership of the managed object (public member function)

std::ios_base::sync_with_stdio

static bool sync_with_stdio( bool sync = true ); Sets whether the standard C++ streams are synchronized to the standard C streams after each input/output operation. The standard C++ streams are the following: std::cin, std::cout, std::cerr, std::clog, std::wcin, std::wcout, std::wcerr and std::wclog. The standard C streams are the following: stdin, stdout and stderr. For a standard stream str, synchronized with the C stream f, the following pairs of functions have identical effect: 1)

Clock

The Clock concept describes a bundle consisting of a std::chrono::duration, a std::chrono::time_point, and a function now() to get the current time_point. The origin of the clock's time_point is referred to as the clock's epoch. Requirements C1 and C2 denote clock types. t1 and t2 are values returned by C1::now() where the call returning t1 happens before the call returning t2 and both of these calls occur before C1::time_point::max(). Expression Return type Operational semantics C1::rep

std::char_traits::eof

static int_type eof(); (until C++11) static constexpr int_type eof(); (since C++11) Returns a value not equivalent to any value of type char_type. Parameters (none). Return value A value not equivalent to any value of type char_type. Exceptions (none) (until C++11) noexcept specification: noexcept (since C++11) Complexity Constant. See also not_eof [static] checks whether a character is eof value (public static member function)

const_cast conversion

Converts between types with different cv-qualification. Syntax const_cast < new_type > ( expression ) Returns a value of type new_type. Explanation Only the following conversions can be done with const_cast. In particular, only const_cast may be used to cast away (remove) constness or volatility. 1) Two possibly multilevel pointers to the same type may be converted between each other, regardless of cv-qualifiers at each level. 2) lvalue of any type T may be converted to a

std::cosh(std::complex)

Defined in header <complex> template< class T > complex<T> cosh( const complex<T>& z ); (since C++11) Computes complex hyperbolic cosine of a complex value z. Parameters z - complex value Return value If no errors occur, complex hyperbolic cosine of z is returned. Error handling and special values Errors are reported consistent with math_errhandling. If the implementation supports IEEE floating-point arithmetic, std::cosh(std::conj(z

std::ptr_fun

Defined in header <functional> template< class Arg, class Result > std::pointer_to_unary_function<Arg,Result> ptr_fun( Result (*f)(Arg) ); (1) (until C++17)(deprecated since C++11) template< class Arg1, class Arg2, class Result > std::pointer_to_binary_function<Arg1,Arg2,Result> ptr_fun( Result (*f)(Arg1, Arg2) ); (2) (until C++17)(deprecated since C++11) Creates a function wrapper object (either std::pointer_to_unary_function or std::p

continue

Usage continue statement: as the declaration of the statement

Function-try-block

Establishes an exception handler around the body of a function. Syntax The function-try-block is one of the alternative syntax forms for function-body, which is a part of function definition. try ctor-initializer(optional) compound-statement handler-sequence ctor-initializer - member initializer list, only allowed in constructors compound-statement - the brace-enclosed sequence of statements that constututes the body of a function handler-sequence - sequence of one o