Clementine
|
Opaque iterator for meta associative containers. More...
#include <entt.hpp>
Public Types | |
using | difference_type = std::ptrdiff_t |
Signed integer type. | |
using | value_type = std::pair< meta_any, meta_any > |
Type of elements returned by the iterator. | |
using | pointer = void |
Pointer type, void on purpose. | |
using | reference = value_type |
Reference type, it is not an actual reference. | |
using | iterator_category = std::input_iterator_tag |
Iterator category. | |
Public Member Functions | |
meta_iterator () ENTT_NOEXCEPT=default | |
Default constructor. | |
template<bool KeyOnly, typename It > | |
meta_iterator (std::integral_constant< bool, KeyOnly >, It iter) | |
Constructs a meta iterator from a given iterator. More... | |
meta_iterator & | operator++ () ENTT_NOEXCEPT |
Pre-increment operator. More... | |
meta_iterator | operator++ (int) ENTT_NOEXCEPT |
Post-increment operator. More... | |
bool | operator== (const meta_iterator &other) const ENTT_NOEXCEPT |
Checks if two meta iterators refer to the same element. More... | |
bool | operator!= (const meta_iterator &other) const ENTT_NOEXCEPT |
Checks if two meta iterators refer to the same element. More... | |
reference | operator* () const |
Indirection operator. More... | |
operator bool () const ENTT_NOEXCEPT | |
Returns false if an iterator is invalid, true otherwise. More... | |
Opaque iterator for meta associative containers.
|
inline |
Constructs a meta iterator from a given iterator.
KeyOnly | True if the associative container is also key-only, false otherwise. |
It | Type of actual iterator with which to build the meta iterator. |
iter | The actual iterator with which to build the meta iterator. |
|
inlineexplicit |
Returns false if an iterator is invalid, true otherwise.
|
inline |
Checks if two meta iterators refer to the same element.
other | The meta iterator with which to compare. |
|
inline |
Indirection operator.
|
inline |
Pre-increment operator.
|
inline |
Post-increment operator.
|
inline |
Checks if two meta iterators refer to the same element.
other | The meta iterator with which to compare. |