std::enable_shared_from_this::enable_shared_from_this

constexpr enable_shared_from_this(); (1) (since C++11) enable_shared_from_this( const enable_shared_from_this<T>&obj ); (2) (since C++11) Constructs new enable_shared_from_this object. Parameters obj - an enable_shared_from_this to copy Exceptions noexcept specification: noexcept Example #include <memory> struct Foo : public std::enable_shared_from_this<Foo> { Foo() {} // implicitly calls enable_shared_from_this constructor std

std::basic_filebuf::imbue

protected: virtual void imbue( const std::locale& loc ) Changes the associated locale so that all characters inserted or extracted after this call (and until another call to imbue()) are converted using the std::codecvt facet of loc. If the old locale's encoding is state-dependent and file is not positioned at the beginning, then the new locale must have the same std::codecvt facet as the one previously imbued. Parameters loc - the locale to imbue the stream with Return

std::char_traits::copy

static char_type* copy( char_type* dest, const char_type* src, std::size_t count ); Copies count character from character string pointed to by src to character string pointed to by dest. The behavior is undefined if copied character ranges overlap, i.e. src is in [dest, dest + count). Parameters dest - pointer to a character string to copy to src - pointer to a character string to copy from count - the number of characters to copy Return value dest. Exception

std::basic_string::rbegin

reverse_iterator rbegin(); const_reverse_iterator rbegin() const; const_reverse_iterator crbegin() const; (since C++11) Returns a reverse iterator to the first character of the reversed string. It corresponds to the last character of the non-reversed string. Parameters (none). Return value reverse iterator to the first character. Exceptions (none) (until C++11) noexcept specification: noexcept (since C++11) Complexity Constant. Example #include <iostr

std::ctype_byname

Defined in header <locale> template< class CharT > class ctype_byname : public std::ctype<CharT>; std::ctype_byname is a std::ctype facet which encapsulates character classification rules of the locale specified at its construction. Two specializations are provided by the standard library. Defined in header <locale> std::ctype_byname<char> provides narrow character classification. This specialization uses table lookup for character classificati

case

Usage switch statement: as the declaration of the case labels

std::regex_iterator::regex_iterator

regex_iterator(); (1) (since C++11) regex_iterator(BidirIt a, BidirIt b, const regex_type& re, std::regex_constants::match_flag_type m = std::regex_constants::match_default); (2) (since C++11) regex_iterator(const regex_iterator&); (3) (since C++11) regex_iterator(BidirIt, BidirIt, const regex_type&&, std::regex_constants::match_flag_type = std::regex_constants::m

std::max

Defined in header <algorithm> (1) template< class T > const T& max( const T& a, const T& b ); (until C++14) template< class T > constexpr const T& max( const T& a, const T& b ); (since C++14) (2) template< class T, class Compare > const T& max( const T& a, const T& b, Compare comp ); (until C++14) template< class T, class Compare > constexpr const T& max( const T& a, const T& b, Compare co

cstdio

This header was originally in the C standard library as <stdio.h>. This header is part of the C-style input/output library. Types FILE type, capable of holding all information needed to control a C I/O stream fpos_t type, capable of uniquely specifying a position in a file size_t unsigned integer type returned by the sizeof operator (typedef) Macros NULL implementation-defined null pointer constant (macro constant) stdinstdoutstderr expression of type FILE* as

std::stable_sort

Defined in header <algorithm> template< class RandomIt > void stable_sort( RandomIt first, RandomIt last ); (1) template< class RandomIt, class Compare > void stable_sort( RandomIt first, RandomIt last, Compare comp ); (2) Sorts the elements in the range [first, last) in ascending order. The order of equal elements is guaranteed to be preserved. The first version uses operator< to compare the elements, the second version uses the given comparison functi