std::basic_string::find_first_of

size_type find_first_of( const basic_string& str, size_type pos = 0 ) const; (1) size_type find_first_of( const CharT* s, size_type pos, size_type count ) const; (2) size_type find_first_of( const CharT* s, size_type pos = 0 ) const; (3) size_type find_first_of( CharT ch, size_type pos = 0 ) const; (4) Finds the first character equal to one of the characters in the given character sequence. The search considers only the interval [pos, size()). If the character is n

std::unordered_set::end(int)

local_iterator end( size_type n ); (since C++11) const_local_iterator end( size_type n ) const; (since C++11) const_local_iterator cend( size_type n ) const; (since C++11) Returns an iterator to the element following the last element of the bucket with index n. . This element acts as a placeholder, attempting to access it results in undefined behavior. Parameters n - the index of the bucket to access Return value iterator to the element following the last eleme

Constructors and member initializer lists

Constructor is a special non-static member function of a class that is used to initialize objects of its class type. In the definition of a constructor of a class, member initializer list specifies the initializers for direct and virtual base subobjects and non-static data members. ( Not to be confused with std::initializer_list ). Syntax Constructors are declared using member function declarators of the following form: class-name ( parameter-list(optional) ) except-spec(optional) attr(opti

std::get(std::pair)

Defined in header <utility> (1) template< size_t N, class T1, class T2 > typename std::tuple_element<I, std::pair<T1,T2> >::type& get( pair<T1, T2>& p ); (since C++11) (until C++14) template< size_t N, class T1, class T2 > constexpr std::tuple_element_t<I, std::pair<T1,T2> >& get( pair<T1, T2>& p ); (since C++14) (2) template< size_t N, class T1, class T2 > const typename std::tuple_element

std::money_get

Defined in header <locale> template< class CharT, class InputIt = std::istreambuf_iterator<CharT> > class money_get; Class template std::money_get encapsulates the rules for parsing monetary values from character streams. The standard I/O manipulator std::get_money uses the std::money_get facet of the I/O stream's locale. Inheritance diagram. Type requirements - InputIt must meet the requirements of InputIterator. Specializations Two sta

std::forward_list::forward_list

(1) explicit forward_list( const Allocator& alloc = Allocator() ); (since C++11) (until C++14) forward_list() : forward_list( Allocator() ) {} explicit forward_list( const Allocator& alloc ); (since C++14) forward_list( size_type count, const T& value, const Allocator& alloc = Allocator()); (2) (since C++11) (3) explicit forward_list( size_type count ); (since C++11) (until C++14) explicit forward_list( size_type count, cons

catch

Usage try-catch block

asm

Usage Declaration of an inline assembly block

std::unordered_multimap::unordered_multimap

(1) explicit unordered_multimap( size_type bucket_count = /*implementation-defined*/, const Hash& hash = Hash(), const KeyEqual& equal = KeyEqual(), const Allocator& alloc = Allocator() ); (since C++11) (until C++14) unordered_multimap() : unordered_multimap( size_type(/*implementation-defined*/) {} explicit unordered_multimap( size_type bucket_count, const Has

std::piecewise_construct

constexpr piecewise_construct_t piecewise_construct = std::piecewise_construct_t(); (since C++11) The constant std::piecewise_construct is an instance of an empty struct tag type std::piecewise_construct_t. Example #include <iostream> #include <utility> #include <tuple> struct Foo { Foo(std::tuple<int, float>) { std::cout << "Constructed a Foo from a tuple\n"; } Foo(int, float) { std::cout << "Constructed a