std::enable_shared_from_this

Defined in header <memory> template< class T > class enable_shared_from_this; (since C++11) std::enable_shared_from_this allows an object t that is currently managed by a std::shared_ptr named pt to safely generate additional std::shared_ptr instances pt1, pt2, ... that all share ownership of t with pt. Inheriting from std::enable_shared_from_this<T> provides the type T with a member function shared_from_this. If an object t of type T is managed by a std::shared

std::setiosflags

Defined in header <iomanip> /*unspecified*/ setiosflags( std::ios_base::fmtflags mask ); When used in an expression out << setiosflags(mask) or in >> setiosflags(mask), sets all format flags of the stream out or in as specified by the mask. Parameters mask - bitmask of the flags to set 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::basic_ist

std::regex_traits::translate_nocase

CharT translate_nocase(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, ignoring the case differences, if any, produce the same key. When the regex library needs to match two characters c1 and c2 and the flag std::regex_constants::icase is true, it executes regex_traits<>::translate_nocase(c1) == regex_traits<>::translate_nocase(c2). Standard library specializations of std::re

std::sinh

Defined in header <cmath> float sinh( float arg ); (1) double sinh( double arg ); (2) long double sinh( long double arg ); (3) double sinh( Integral arg ); (4) (since C++11) Computes the hyperbolic sine of arg. 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 of a floating-point or Integral type Return value If n

std::match_results::position

difference_type position( size_type n = 0 ) const; (since C++11) Returns the position of the first character of the specified sub-match. If n == 0, the position of the first character of the entire matched expression is returned. If n > 0 && n < size(), the position of the first character of the nth sub-match is returned. if n >= size(), a position of the first character of the unmatched match is returned. Parameters n - integral number specifying which match to

std::isprint

Defined in header <cctype> int isprint( int ch ); Checks if is a printable character as classified by the currently installed C locale. In the default, "C" locale, the following characters are printable: digits (0123456789) uppercase letters (ABCDEFGHIJKLMNOPQRSTUVWXYZ) lowercase letters (abcdefghijklmnopqrstuvwxyz) punctuation characters (!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~) space () The behavior is undefined if the value of ch is not representable as un

operators (std::shuffle_order_engine)

template< class Engine, size_t k > bool operator==( const shuffle_order_engine<Engine,k>& lhs, const shuffle_order_engine<Engine,k>& rhs ); (1) (since C++11) template< class Engine, size_t k > bool operator!=( const shuffle_order_engine<Engine,k>& lhs, const shuffle_order_engine<Engine,k>& rhs ); (2) (since C++11) Compares two pseudo-random number engine adaptors. Two engine adaptors are equal, i

std::islessequal

Defined in header <cmath> bool islessequal( float x, float y ); (1) (since C++11) bool islessequal( double x, double y ); (2) (since C++11) bool islessequal( long double x, long double y ); (3) (since C++11) bool islessequal( Arithmetic x, Arithmetic y ); (4) (since C++11) 1-3) Determines if the floating point number x is less than or equal to the floating-point number y, without setting floating-point exceptions. 4) A set of overloads or a function temp

std::unordered_map::bucket_count

size_type bucket_count() const; (since C++11) Returns the number of buckets in the container. Parameters (none). Return value The number of buckets in the container. Complexity Constant. See also bucket_size returns the number of elements in specific bucket (public member function) max_bucket_count returns the maximum number of buckets (public member function)

std::vector::empty

bool empty() const; Checks if the container has no elements, i.e. whether begin() == end(). Parameters (none). Return value true if the container is empty, false otherwise. Exceptions (none) (until C++11) noexcept specification: noexcept (since C++11) Complexity Constant. Example The following code uses empty to check if a std::vector<int> contains any elements: #include <vector> #include <iostream> int main() { std::vector<int> numbers;