front_insert_iterator is an LegacyOutputIterator that prepends elements to a container for which it was constructed.
More...
#include <front_insert_iterator.hpp>
|
constexpr | front_insert_iterator () noexcept=default |
| Initializes the underlying pointer to container with nullptr.
|
|
constexpr | front_insert_iterator (Container &container) |
| Initializes the underlying pointer to the container to addressof(c).
|
|
constexpr auto | operator* () -> front_insert_iterator & |
| Does nothing, this member function is provided to satisfy the requirements of LegacyOutputIterator. It returns the iterator itself, which makes it possible to use code such as *iter = value to output (insert) the value into the underlying container.
|
|
constexpr auto | operator++ () -> front_insert_iterator & |
| Does nothing. These operator overloads are provided to satisfy the requirements of LegacyOutputIterator. They make it possible for the expressions *iter++=value and *++iter=value to be used to output (insert) a value into the underlying container.
|
|
constexpr auto | operator++ (int) -> front_insert_iterator |
| Does nothing. These operator overloads are provided to satisfy the requirements of LegacyOutputIterator. They make it possible for the expressions *iter++=value and *++iter=value to be used to output (insert) a value into the underlying container.
|
|
constexpr auto | operator= (typename Container::value_type &&value) -> front_insert_iterator & |
| Inserts the given value value to the container.
|
|
constexpr auto | operator= (typename Container::value_type const &value) -> front_insert_iterator & |
| Inserts the given value value to the container.
|
|
template<typename Container>
struct etl::front_insert_iterator< Container >
front_insert_iterator is an LegacyOutputIterator that prepends elements to a container for which it was constructed.
The container's push_front() member function is called whenever the iterator (whether dereferenced or not) is assigned to. Incrementing the front_insert_iterator is a no-op.
◆ container_type
template<typename Container>
◆ difference_type
template<typename Container>
◆ iterator_category
template<typename Container>
◆ pointer
template<typename Container>
◆ reference
template<typename Container>
◆ value_type
template<typename Container>
◆ front_insert_iterator() [1/2]
template<typename Container>
Initializes the underlying pointer to container with nullptr.
◆ front_insert_iterator() [2/2]
template<typename Container>
Initializes the underlying pointer to the container to addressof(c).
◆ operator*()
template<typename Container>
Does nothing, this member function is provided to satisfy the requirements of LegacyOutputIterator. It returns the iterator itself, which makes it possible to use code such as *iter = value to output (insert) the value into the underlying container.
◆ operator++() [1/2]
template<typename Container>
Does nothing. These operator overloads are provided to satisfy the requirements of LegacyOutputIterator. They make it possible for the expressions *iter++=value and *++iter=value to be used to output (insert) a value into the underlying container.
◆ operator++() [2/2]
template<typename Container>
Does nothing. These operator overloads are provided to satisfy the requirements of LegacyOutputIterator. They make it possible for the expressions *iter++=value and *++iter=value to be used to output (insert) a value into the underlying container.
◆ operator=() [1/2]
template<typename Container>
Inserts the given value value to the container.
◆ operator=() [2/2]
template<typename Container>
Inserts the given value value to the container.
◆ _container
template<typename Container>
Container* _container = nullptr |
|
protected |
The documentation for this struct was generated from the following file: