std::iswcntrl

Defined in header <cwctype> int iswcntrl( std::wint_t ch ); Checks if the given wide character is a control character, i.e. codes 0x00-0x1F and 0x7F and any control characters specific to the current locale. Parameters ch - wide character Return value Non-zero value if the wide character is a control character, zero otherwise. Example #include <iostream> #include <cwctype> #include <clocale> int main() { wchar_t c = L'\u2028'; // t

std::rotate

Defined in header <algorithm> template< class ForwardIt > void rotate( ForwardIt first, ForwardIt n_first, ForwardIt last ); (until C++11) template< class ForwardIt > ForwardIt rotate( ForwardIt first, ForwardIt n_first, ForwardIt last ); (since C++11) Performs a left rotation on a range of elements. Specifically, std::rotate swaps the elements in the range [first, last) in such a way that the element n_first becomes the first element of the new range and

std::unordered_map::insert_or_assign

template <class M> pair<iterator, bool> insert_or_assign(const key_type& k, M&& obj); (1) (since C++17) template <class M> pair<iterator, bool> insert_or_assign(key_type&& k, M&& obj); (2) (since C++17) template <class M> iterator insert_or_assign(const_iterator hint, const key_type& k, M&& obj); (3) (since C++17) template <class M> iterator insert_or_assign(const_iterator hint, key_type&& k,

MATH_ERRNO

Defined in header <cmath> #define MATH_ERRNO 1 (since C++11) #define MATH_ERREXCEPT 2 (since C++11) #define math_errhandling /*implementation defined*/ (since C++11) The macro constant math_errhandling expands to an expression of type int that is either equal to MATH_ERRNO, or equal to MATH_ERREXCEPT, or equal to their bitwise OR (MATH_ERRNO | MATH_ERREXCEPT). The value of math_errhandling indicates the type of error handling that is performed by the

std::basic_filebuf

Defined in header <fstream> template< class CharT, class Traits = std::char_traits<CharT> > class basic_filebuf : public std::basic_streambuf<CharT, Traits> std::basic_filebuf is a std::basic_streambuf whose associated character sequence is a file. Both the input sequence and the output sequence are associated with the same file, and a joint file position is maintained for both operations. The functions underflow() and overflow()/sync() perform t

return

Usage return statement: as the declaration of the statement

std::messages::open

Defined in header <locale> public: catalog open( const std::basic_string<char>& name, const std::locale& loc ) const; (1) protected: virtual catalog do_open( const std::basic_string<char>& name, const std::locale& loc ) const; (2) 1) Public member function, calls the protected virtual member function do_open of the most derived class. 2) Obtains a value of type catalog (inherited from std::messages_base), which can be passed to get() to ret

std::forward_list::remove

void remove( const T& value ); (since C++11) template< class UnaryPredicate > void remove_if( UnaryPredicate p ); (since C++11) Removes all elements satisfying specific criteria. The first version removes all elements that are equal to value, the second version removes all elements for which predicate p returns true. Parameters value - value of the elements to remove p - unary predicate which returns ​true if the element should be removed. The signature of

std::strstreambuf

Defined in header <strstream> class strstreambuf : public std::basic_streambuf<char> (deprecated) std::strstreambuf is a std::basic_streambuf whose associated character sequence is a character array, which may be constant (e.g. a string literal), modifyable but not dynamic (e.g. a stack-allocated array), or dynamic, in which case the std::strstreambuf may be allowed to reallocate the array as necessary to accomodate output (e.g. by calling delete[] and new[] or user-p

std::thread

Defined in header <thread> class thread; (since C++11) The class thread represents a single thread of execution. Threads allow multiple pieces of code to run asynchronously and simultaneously. std::thread objects may also be in the state that does not represent any thread (it gets into that state after default construction, a move from, detach, or join), and a thread of execution may be not associated with any thread objects (it gets into that state after detach). No two st