|
libkeepass 0.2.0
KeePass key database importer/exporter library
|
An output iterator that throws on writing past the end of a container. More...
#include <iterator.hh>
Public Types | |
| using | iterator_category = std::output_iterator_tag |
| using | value_type = void |
| using | difference_type = void |
| using | pointer = void |
| using | reference = void |
Public Member Functions | |
| bounds_checked_iterator (C &container) | |
| bounds_checked_iterator & | operator= (const typename C::value_type &value) |
| Assigns a value through the iterator, throwing if the end is exceeded. | |
| bounds_checked_iterator & | operator= (typename C::value_type &&value) |
| Move-assigns a value through the iterator, throwing if the end is exceeded. | |
| bounds_checked_iterator & | operator* () |
| bounds_checked_iterator & | operator++ () |
| bounds_checked_iterator | operator++ (int) |
Protected Attributes | |
| C::iterator | first_ |
| C::iterator | last_ |
An output iterator that throws on writing past the end of a container.
The iterator wraps a range of a container and throws std::out_of_range whenever an assignment would exceed the container's bounds.
| C | the underlying container type. |
|
inlineexplicit |
Creates a bounds-checked iterator over the given container.
| container | the container to iterate over. |