[front.insert.iter.ops]

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

## 24.5 Iterator adaptors [[predef.iterators]](predef.iterators#front.insert.iter.ops)

### 24.5.2 Insert iterators [[insert.iterators]](insert.iterators#front.insert.iter.ops)

#### 24.5.2.3 Class template front_insert_iterator [[front.insert.iterator]](front.insert.iterator#front.insert.iter.ops)

#### 24.5.2.3.2 Operations [front.insert.iter.ops]

[ð](#lib:front_insert_iterator,constructor)

`constexpr explicit front_insert_iterator(Container& x);
`

[1](#1)

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

*Effects*: Initializescontainer with addressof(x)[.](#1.sentence-1)

[ð](#lib:operator=,front_insert_iterator)

`constexpr front_insert_iterator& operator=(const typename Container::value_type& value);
`

[2](#2)

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

*Effects*: As if by: container->push_front(value);

[3](#3)

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

*Returns*: *this[.](#3.sentence-1)

[ð](#lib:operator=,front_insert_iterator_)

`constexpr front_insert_iterator& operator=(typename Container::value_type&& value);
`

[4](#4)

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

*Effects*: As if by: container->push_front(std​::​move(value));

[5](#5)

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

*Returns*: *this[.](#5.sentence-1)

[ð](#lib:operator*,front_insert_iterator)

`constexpr front_insert_iterator& operator*();
`

[6](#6)

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

*Returns*: *this[.](#6.sentence-1)

[ð](#lib:operator++,front_insert_iterator)

`constexpr front_insert_iterator& operator++();
constexpr front_insert_iterator  operator++(int);
`

[7](#7)

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

*Returns*: *this[.](#7.sentence-1)
