[inserter]

# 24 Iterators library [[iterators]](./#iterators)

## 24.5 Iterator adaptors [[predef.iterators]](predef.iterators#inserter)

### 24.5.2 Insert iterators [[insert.iterators]](insert.iterators#inserter)

#### 24.5.2.4 Class template insert_iterator [[insert.iterator]](insert.iterator#inserter)

#### 24.5.2.4.3 inserter [inserter]

[ð](#lib:inserter)

`template<class Container>
  constexpr insert_iterator<Container>
    inserter(Container& x, ranges::iterator_t<Container> i);
`

[1](#1)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iterators.tex#L4170)

*Returns*: insert_iterator<Container>(x, i)[.](#1.sentence-1)
