std::insert_iterator::insert_iterator - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::insert_iterator::insert_iterator

From cppreference.com
< cpp‎ | iterator‎ | insert iterator

[edit template]

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`.

### [edit] Parameters

c | - | container to initialize the inserter with
iter | - | iterator to initialize the inserter with

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/iterator/insert_iterator/insert_iterator&oldid=50878"