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::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::codecvt::encoding

Defined in header <locale> public: int encoding() const; (1) protected: virtual int do_encoding() const; (2) 1) public member function, calls the member function do_encoding of the most derived class. 2) if the encoding represented by this codecvt facet maps each internal character to the same, constant number of external characters, returns that number. If the encoding is variable-length (e.g. UTF-8 or UTF-16), returns ​0​. If the encoding is state-dependent, retur

std::codecvt

Defined in header <locale> template< class InternT, class ExternT, class State > class codecvt; Class std::codecvt encapsulates conversion of character strings, including wide and multibyte, from one encoding to another. All file I/O operations performed through std::basic_fstream<CharT> use the std::codecvt<CharT, char, std::mbstate_t> facet of the locale imbued in the stream. Inheritance diagram. Four standalone (locale-independent)

std::codecvt::always_noconv

Defined in header <locale> public: bool always_noconv() const; (1) protected: virtual bool do_always_noconv() const; (2) 1) Public member function, calls the member function do_always_noconv of the most derived class. 2) Returns true if both do_in() and do_out() return std::codecvt_base::noconv for all valid inputs. Return value true if this conversion facet performs no conversions, false otherwise. The non-converting specialization std::codecvt<char, char, st

std::clog

Defined in header <iostream> extern std::ostream clog; (1) extern std::wostream wclog; (2) The global objects std::clog and std::wclog control output to a stream buffer of implementation-defined type (derived from std::streambuf), associated with the standard C output stream stderr, but, unlike std::cerr/std::wcerr, these streams are not automatically flushed and not automatically tie()'d with cout. These objects are guaranteed to be initialized during or before the f

std::cin

Defined in header <iostream> extern std::istream cin; (1) extern std::wistream wcin; (2) The global objects std::cin and std::wcin control input from a stream buffer of implementation-defined type (derived from std::streambuf), associated with the standard C input stream stdin. These objects are guaranteed to be constructed before the first constructor of a static object is called and they are guaranteed to outlive the last destructor of a static object, so that it is

std::clock_t

Defined in header <ctime> typedef /* unspecified */ clock_t; Arithmetic type capable of representing the process running time of implementation-defined range and precision. See also clock returns raw processor clock time since the program is started (function) CLOCKS_PER_SEC number of processor clock ticks per second (macro constant) C documentation for clock_t

std::clock

Defined in header <ctime> std::clock_t clock(); Returns the approximate processor time used by the process since the beginning of an implementation-defined era related to the program's execution. To convert result value to seconds divide it by CLOCKS_PER_SEC. Only the difference between two values returned by different calls to std::clock is meaningful, as the beginning of the std::clock era does not have to coincide with the start of the program. std::clock time may advanc

std::clearerr

Defined in header <cstdio> void clearerr( std::FILE* stream ); Resets the error flags and the EOF indicator for the given file stream. Parameters stream - the file to reset the error flags for Return value (none). Example See also feof checks for the end-of-file (function) perror displays a character string corresponding of the current error to stderr (function) ferror checks for a file error (function) C documentation for clearerr