std::invalid_argument

Defined in header <stdexcept> class invalid_argument; Defines a type of object to be thrown as exception. It reports errors that arise because an argument value has not been accepted. This exception is thrown by std::bitset::bitset, and the std::stoi and std::stof families of functions. Inheritance diagram. Member functions (constructor) constructs the exception object (public member function) std::invalid_argument::invalid_argument explicit invalid_ar

std::iostream_category

Defined in header <ios> const std::error_category& iostream_category(); (since C++11) Obtains a reference to the static error category object for iostream errors. The object is required to override the virtual function error_category::name() to return a pointer to the string "iostream". It is used to identify error codes provided in the exceptions of type std::ios_base::failure. Parameters (none). Return value A reference to the static object of unspecified runtim

std::inserter

Defined in header <iterator> template< class Container > std::insert_iterator<Container> inserter( Container& c, typename Container::iterator i ); inserter is a convenience function template that constructs a std::insert_iterator for the container c and its iterator i with the type deduced from the type of the argument. Parameters c - container that supports a insert operation i - iterator in c indicating the insertion position Return valu

std::input_iterator_tag

Defined in header <iterator> struct input_iterator_tag { }; struct output_iterator_tag { }; struct forward_iterator_tag : public input_iterator_tag { }; struct bidirectional_iterator_tag : public forward_iterator_tag { }; struct random_access_iterator_tag : public bidirectional_iterator_tag { }; Defines the category of an iterator. Each tag is an empty type and corresponds to one of the five iterator categories: input_iterator_tag corresponds to Inp

std::insert_iterator::insert_iterator

explicit insert_iterator( Container& c, typename Container::iterator i ); Initializes the underlying pointer to the container to std::addressof(c) and the interlying iterator to iter. Parameters c - container to initialize the inserter with iter - iterator to initialize the inserter with

std::insert_iterator

Defined in header <iterator> template< class Container > class insert_iterator : public std::iterator< std::output_iterator_tag, void,void,void,void > std::insert_iterator is an OutputIterator that inserts elements into a container for which it was constructed, at the position pointed to by the supplied iterator. The container's insert() member function is called whenever the iterator (whether dereferenced or not) is

std::inplace_merge

Defined in header <algorithm> template< class BidirIt > void inplace_merge( BidirIt first, BidirIt middle, BidirIt last ); (1) template< class BidirIt, class Compare> void inplace_merge( BidirIt first, BidirIt middle, BidirIt last, Compare comp ); (2) Merges two consecutive sorted ranges [first, middle) and [middle, last) into one sorted range [first, last). The order of equal elements is guaranteed to be preserved. The first version uses operator< to c

std::initializer_list::begin

const T* begin() const; (since C++11) (until C++14) constexpr const T* begin() const; (since C++14) Returns a pointer to the first element in the initializer list. If the initializer list is empty, the values of begin() and end() are unspecified, but will be identical. Parameters (none). Return value a pointer to the first element in the initializer list. Exceptions noexcept specification: noexcept Complexity Constant. See also end returns a pointer to one pas

std::initializer_list::end

const T* end() const; (since C++11) (until C++14) constexpr const T* end() const; (since C++14) Returns a pointer to one past the last element in the initializer list, i.e. begin() + size(). If the initializer list is empty, the values of begin() and end() are unspecified, but will be identical. Parameters (none). Return value a pointer to one past the last element in the initializer list. Exceptions noexcept specification: noexcept Complexity Constant. See also

std::initializer_list

(not to be confused with member initializer list). Defined in header <initializer_list> template< class T > class initializer_list; (since C++11) An object of type std::initializer_list<T> is a lightweight proxy object that provides access to an array of objects of type const T. A std::initializer_list object is automatically constructed when: a braced-init-list is used in list-initialization, including function-call list initialization and assignment expressio