kblib 0.2.3
General utilities library for modern C++
|
Like a std::back_insert_iterator, but it keeps track of how many insertions it has made, allowing an end iterator to be created. More...
#include <kblib/iterators.h>
Classes | |
struct | proxy_iterator |
Public Types | |
using | value_type = void |
using | difference_type = std::ptrdiff_t |
using | pointer = void |
using | reference = void |
using | iterator_category = std::output_iterator_tag |
Public Member Functions | |
counting_back_insert_iterator () noexcept=default | |
counting_back_insert_iterator (Container &c, std::size_t n=0) | |
counting_back_insert_iterator (std::size_t n) | |
auto | operator* () noexcept -> proxy_iterator |
auto | operator++ () &noexcept -> counting_back_insert_iterator & |
auto | operator++ (int) noexcept -> counting_back_insert_iterator=delete |
Protected Attributes | |
Container * | container = nullptr |
std::size_t | count = 0 |
bool | dirty = true |
Friends | |
auto | operator== (const counting_back_insert_iterator &a, const counting_back_insert_iterator &b) noexcept -> bool |
auto | operator!= (const counting_back_insert_iterator &a, const counting_back_insert_iterator &b) noexcept -> bool |
auto | operator< (const counting_back_insert_iterator &a, const counting_back_insert_iterator &b) noexcept -> bool |
auto | operator<= (const counting_back_insert_iterator &a, const counting_back_insert_iterator &b) noexcept -> bool |
auto | operator> (const counting_back_insert_iterator &a, const counting_back_insert_iterator &b) noexcept -> bool |
auto | operator>= (const counting_back_insert_iterator &a, const counting_back_insert_iterator &b) noexcept -> bool |
auto | operator- (const counting_back_insert_iterator &a, const counting_back_insert_iterator &b) noexcept -> std::ptrdiff_t |
Like a std::back_insert_iterator, but it keeps track of how many insertions it has made, allowing an end iterator to be created.
Definition at line 107 of file iterators.h.
using kblib::counting_back_insert_iterator< Container >::difference_type = std::ptrdiff_t |
Definition at line 110 of file iterators.h.
using kblib::counting_back_insert_iterator< Container >::iterator_category = std::output_iterator_tag |
Definition at line 113 of file iterators.h.
using kblib::counting_back_insert_iterator< Container >::pointer = void |
Definition at line 111 of file iterators.h.
using kblib::counting_back_insert_iterator< Container >::reference = void |
Definition at line 112 of file iterators.h.
using kblib::counting_back_insert_iterator< Container >::value_type = void |
Definition at line 109 of file iterators.h.
|
defaultnoexcept |
|
inlineexplicit |
Definition at line 116 of file iterators.h.
|
inlineexplicit |
Definition at line 119 of file iterators.h.
|
inlinenoexcept |
Definition at line 147 of file iterators.h.
|
inlinenoexcept |
Definition at line 152 of file iterators.h.
|
deletenoexcept |
|
friend |
Definition at line 165 of file iterators.h.
|
friend |
Definition at line 190 of file iterators.h.
|
friend |
Definition at line 170 of file iterators.h.
|
friend |
Definition at line 175 of file iterators.h.
|
friend |
Definition at line 160 of file iterators.h.
|
friend |
Definition at line 180 of file iterators.h.
|
friend |
Definition at line 185 of file iterators.h.
|
protected |
Definition at line 197 of file iterators.h.
|
protected |
Definition at line 198 of file iterators.h.
|
protected |
Definition at line 199 of file iterators.h.