std::wscanf

Defined in header <cwchar> int wscanf( const wchar_t* format, ... ); (1) (since C++11) int fwscanf( std::FILE* stream, const wchar_t* format, ... ); (2) (since C++11) int swscanf( const wchar_t* buffer, const wchar_t* format, ... ); (3) (since C++11) Reads data from the a variety of sources, interprets it according to format and stores the results into given locations. 1) Reads the data from stdin. 2) Reads the data from file stream stream. 3) Reads the data

std::packaged_task

Defined in header <future> template< class > class packaged_task; //not defined (1) (since C++11) template< class R, class ...Args > class packaged_task<R(Args...)>; (2) (since C++11) The class template std::packaged_task wraps any Callable target (function, lambda expression, bind expression, or another function object) so that it can be invoked asynchronously. Its return value or exception thrown is stored in a shared state which can be accessed t

std::regex_traits::translate

CharT translate(CharT c) const; Obtains the comparison key for the character c, such that all characters that are equivalent to this character in the imbued locale produce the same key. When the regex library needs to match two characters c1 and c2 and the flag std::regex_constants::collate is true, it executes regex_traits<>::translate(c1) == regex_traits<>::translate(c2). Standard library specializations of std::regex_traits return c unmodified. Parameters c - char

std::basic_string::at

reference at( size_type pos ); const_reference at( size_type pos ) const; Returns a reference to the character at specified location pos. Bounds checking is performed, exception of type std::out_of_range will be thrown on invalid access. Parameters pos - position of the character to return Return value Reference to the requested character. Exceptions Throws std::out_of_range if pos >= size(). Complexity Constant. Example #include <stdexcept>

std::regex_iterator::operators

bool operator==(const regex_iterator& rhs) const; (1) (since C++11) bool operator!=(const regex_iterator& rhs) const; (2) (since C++11) Compares two regex_iterators. For the sake of exposition, assume that regex_iterator contains the following members: BidirIt begin; BidirIt end; const regex_type *pregex; std::regex_constants::match_flag_type flags; std::match_results<BidirIt> match; 1) Returns true if *this and rhs are both end-of-sequence iterators, or

std::vector::data

T* data(); (since C++11) const T* data() const; (since C++11) Returns pointer to the underlying array serving as element storage. The pointer is such that range [data(); data() + size()) is always a valid range, even if the container is empty. Parameters (none). Return value Pointer to the underlying element storage. For non-empty containers, returns &front(). Complexity Constant. Exceptions noexcept specification: noexcept See also front access the first

std::discard_block_engine

Defined in header <random> template< class Engine, size_t P, size_t R > class discard_block_engine; (since C++11) discard_block_engine is a pseudo-random number generator adapter that discards a certain amount of data produced by the base engine. From each block of size P generated by the base engine, the adaptor keeps only R numbers, discarding the rest. Template parameters Engine - the type of the wrapped engine P - the size of a block. Must b

std::multiset::lower_bound

iterator lower_bound( const Key& key ); (1) const_iterator lower_bound( const Key& key ) const; (1) template< class K > iterator lower_bound(const K& x); (2) (since C++14) template< class K > const_iterator lower_bound(const K& x) const; (2) (since C++14) 1) Returns an iterator pointing to the first element that is not less than key. 2) Returns an iterator pointing to the first element that compares not less to the value x. This overload

std::match_results::ready

bool ready() const; (since C++11) Indicates if the match results are ready (valid) or not. A default-constructed match result has no result state (is not ready), and can only be made ready by one of the regex algorithms. The ready state implies that all match results have been fully established. The result of calling most member functions of the match_results object that is not ready is undefined. Return value true if the match results are ready, false otherwise. Example #includ

std::error_category::message

virtual std::string message( int condition ) const = 0; (since C++11) Returns a string describing the given error condition for the error category represented by *this. Parameters condition - specifies the error condition to describe Return value A string describing the given error condition. Exceptions (none).