std::insert_iterator<Container>::insert_iterator (3) - Linux Manuals

std::insert_iterator<Container>::insert_iterator: std::insert_iterator<Container>::insert_iterator

NAME

std::insert_iterator<Container>::insert_iterator - std::insert_iterator<Container>::insert_iterator

Synopsis


insert_iterator() = default; (1) (since C++20)
insert_iterator( Container& c, typename Container::iterator i ); (2) (until C++20)
constexpr insert_iterator( Container& c, ranges::iterator_t<Container> i ); (since C++20)


1) Initializes the underlying pointer to container with nullptr and value-initializes the underlying iterator. (since C++20)


2) Initializes the underlying pointer to the container to std::addressof(c) and the underlying iterator to i.

Parameters


c - container to initialize the inserter with
i - iterator to initialize the inserter with