std::rewind

Defined in header <cstdio> void rewind( std::FILE* stream ); Moves the file position indicator to the beginning of the given file stream. The function is equivalent to std::fseek(stream, 0, SEEK_SET);, except that end-of-file and error indicators are cleared. The function drops any effects from previous calls to ungetc. Parameters stream - file stream to modify Return value (none). Example #include <cstdio> int main() { std::FILE *f; char

cstdlib

This header was originally in the C standard library as <stdlib.h>. This header provides miscellaneous utilities. Symbols defined here are used by several library components. Macro constants EXIT_SUCCESSEXIT_FAILURE indicates program execution execution status (macro constant) MB_CUR_MAX maximum number of bytes in a multibyte character with the current locale (macro constant) NULL implementation-defined null pointer constant (macro constant) RAND_MAX maximum possible

operators (std::move_iterator)

template< class Iterator1, class Iterator2 > bool operator==( const move_iterator<Iterator1>& lhs, const move_iterator<Iterator2>& rhs ); (1) template< class Iterator1, class Iterator2 > bool operator!=( const move_iterator<Iterator1>& lhs, const move_iterator<Iterator2>& rhs ); (2) template< class Iterator1, class Iterator2 > bool operator<( const move_iterator<Iterator1>& lhs,

if

Usage if statement: as the declaration of the if statement

std::current_exception

Defined in header <exception> std::exception_ptr current_exception(); (since C++11) If called during exception handling (typically, in a catch clause), captures the current exception object and creates an std::exception_ptr that holds either a copy or a reference to that exception object (it is implementation-defined if a copy is made). If the implementation of this function requires a call to new and the call fails, the returned pointer will hold a reference to an instance

std::codecvt::max_length

Defined in header <locale> public: int max_length() const; (1) protected: virtual int do_max_length() const; (2) 1) Public member function, calls the member function do_max_length of the most derived class. 2) Returns the maximum value that do_length(state, from, from_end, 1) can return for any valid range [from, from_end) and any valid state. Return value The maximum number of ExternT characters that could be consumed if converted by in() to produce one InternT

std::acosh(std::complex)

Defined in header <complex> template< class T > complex<T> acosh( const complex<T>& z ); (since C++11) Computes complex arc hyperbolic sine of a complex value z with branch cut at values less than 1 along the real axis. Parameters z - complex value Return value If no errors occur, the complex arc hyperbolic cosine of z is returned, in the range of a half-strip of nonnegative values along the real axis and in the interval [−iπ; +iπ] along

Modified ECMAScript regular expression grammar

This page describes the regular expression grammar that is used when std::basic_regex is constructed with syntax_option_type set to ECMAScript (the default). See syntax_option_type for the other supported regular expression grammars. The ECMAScript regular expression grammar in C++ is ECMA-262 grammar with modifications marked with (C++ only) below. Alternatives A regular expression pattern is sequence of one or more Alternatives, separated by the disjunction operator | (in other words, th

std::unary_negate

Defined in header <functional> template< class Predicate > struct unary_negate : public std::unary_function<Predicate::argument_type, bool>; (until C++11) template< class Predicate > struct unary_negate; (since C++11) unary_negate is a wrapper function object returning the complement of the unary predicate it holds. The unary predicate type must define a member type, argument_type, that is convertible to the predicate's parameter type. The unary func

std::atomic_flag_test_and_set

Defined in header <atomic> (1) (since C++11) bool atomic_flag_test_and_set( volatile std::atomic_flag* p ); bool atomic_flag_test_and_set( std::atomic_flag* p ); (2) (since C++11) bool atomic_flag_test_and_set_explicit( volatile std::atomic_flag* p, std::memory_order order ); bool atomic_flag_test_and_set_explicit( std::atomic_flag* p, std::memory_order order ); Atomically