std::resetiosflags

Defined in header <iomanip> /*unspecified*/ resetiosflags( std::ios_base::fmtflags mask ); When used in an expression out << resetiosflags(mask) or in >> resetiosflags(mask), clears all format flags of the stream out or in as specified by the mask. Parameters mask - bitmask of the flags to clear Return value Returns an object of unspecified type such that if str is the name of an output stream of type std::basic_ostream<CharT, Traits> or std:

std::tan

Defined in header <cmath> float tan( float arg ); (1) double tan( double arg ); (2) long double tan( long double arg ); (3) double tan( Integral arg ); (4) (since C++11) Computes the tangent of arg (measured in radians). 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 representing angle in radians, of a floating-point

std::towupper

Defined in header <cwctype> std::wint_t towupper( std::wint_t ch ); Converts the given wide character to uppercase, if possible. Parameters ch - wide character to be converted Return value Uppercase version of ch or unmodified ch if no uppercase version is listed in the current C locale. Notes Only 1:1 character mapping can be performed by this function, e.g. the uppercase form of 'ß' is (with some exceptions) the two-character string "SS", which cannot be

va_end

Defined in header <cstdarg> void va_end( va_list ap ); The va_end macro performs cleanup for an ap object initialized by a call to va_start or va_copy. va_end may modify ap so that it is no longer usable. If there is no corresponding call to va_start or va_copy, or if va_end is not called before a function that calls va_start or va_copy returns, the behavior is undefined. Parameters ap - an instance of the va_list type to clean up Expanded value (none). See

operators (std::lognormal_distribution)

template< class CharT, class Traits, class ResultType > std::basic_ostream<CharT,Traits>& operator<<( std::basic_ostream<CharT,Traits>& ost, const lognormal_distribution<ResultType>& d ); (1) template< class CharT, class Traits, class ResultType > std::basic_istream<CharT,Traits>& operator>>( std::basic_istream<CharT,Traits>& ist,

std::once_flag

Defined in header <mutex> class once_flag; (since C++11) The class std::once_flag is a helper structure for std::call_once. An object of type std::once_flag that is passed to multiple calls to std::call_once allows those calls to coordinate with each other such that only one of the calls will actually run to completion. std::once_flag is neither copyable nor movable. Member functions std::once_flag::once_flag constexpr once_flag(); Constructs an once_flag obje

std::ios_base::precision

streamsize precision() const; (1) streamsize precision( streamsize new_precision ); (2) Manages the precision (i.e. how many digits are generated) of certain numeric output conversions. 1) Returns the current precision. 2) Sets the precision to the given one. Parameters new_precision - new precision setting Return value the precision before the call to the function. Example #include <iostream> int main() { const double d = 1.2345678901234; std::cou

std::unordered_set::max_size

size_type max_size() const; (since C++11) Returns the maximum number of elements the container is able to hold due to system or library implementation limitations, i.e. std::distance(begin(), end()) for the largest container. Parameters (none). Return value Maximum number of elements. Exceptions noexcept specification: noexcept Complexity Constant. Notes This value is typically equal to std::numeric_limits<size_type>::max(), and reflects the theoretical limit on t

std::basic_streambuf::overflow

virtual int_type overflow( int_type ch = traits::eof() ); Ensures that there is space at the put area for at least one character by saving some initial subsequence of characters starting at pbase() to the output sequence and updating the pointers to the put area (if needed). If ch is not Traits::eof() (i.e. Traits::eq_int_type(ch, Traits::eof()) != true), it is either put to the put area or directly saved to the output sequence. The function may update pptr, epptr and pbase pointers to

std::getchar

Defined in header <cstdio> int getchar(); Reads the next character from stdin. Equivalent to std::getc(stdin). Parameters (none). Return value The obtained character on success or EOF on failure. If the failure has been caused by end of file condition, additionally sets the eof indicator (see feof()) on stdin. If the failure has been caused by some other error, sets the error indicator (see ferror()) on stdin. See also fgetcgetc gets a character from a file str