variant_associative_view.h
Go to the documentation of this file.
The argument class is used for forwarding arguments to properties or methods.
Definition argument.h:52
The instance class is used for forwarding the instance of an object to invoke a property or method.
Definition instance.h:48
The variant_associative_view::const_iterator allows iteration over an associative container in a vari...
Definition variant_associative_view.h:316
const_iterator & operator-=(int i)
Returns an iterator to the item at i positions backward from this iterator.
const_iterator operator-(int i) const
Returns an iterator to the item at i positions backward from this iterator.
const_iterator operator+(int i) const
Returns an iterator to the item at i positions forward from this iterator.
const variant get_key() const
Returns the current key, stored inside a std::reference_wrapper<T> and copied to a variant.
~const_iterator()
Destroys the variant_associative_view::const_iterator.
const_iterator(const const_iterator &other)
Creates a copy of other.
const_iterator self_type
Definition variant_associative_view.h:318
bool operator==(const const_iterator &other) const
Returns true if other points to the same item as this iterator; otherwise returns false.
const_iterator & operator++()
Pre-increment operator advances the iterator to the next item in the container and returns an iterato...
const_iterator & operator+=(int i)
Advances the iterator by i items.
const std::pair< variant, variant > operator*() const
Returns the underlying key and value stored in a std::pair<key, value>.
variant value_type
Definition variant_associative_view.h:319
const_iterator & operator--()
Pre-decrement operator makes the preceding item current and returns an iterator to the new current it...
const_iterator & operator=(const_iterator other)
Assigns other to this.
friend class variant_associative_view
Definition variant_associative_view.h:430
const variant get_value() const
Returns the current value, stored inside a std::reference_wrapper<T> and copied to a variant.
const_iterator operator++(int)
Post-increment operator advances the iterator to the next item in the container and returns an iterat...
const_iterator operator--(int)
Post-decrement operator makes the preceding item current and returns an iterator to the previously cu...
bool operator!=(const const_iterator &other) const
Returns true if other points to a different item than this iterator; otherwise returns false.
const_iterator find(argument key)
Finds an element with specific key key .
variant_associative_view()
Constructs an invalid variant_associative_view object.
const_iterator end() const
Returns an iterator to the element following the last element of the container.
variant_associative_view(const variant_associative_view &other)
Constructs a copy of the given variant_associative_view other.
const_iterator begin() const
Returns an iterator to the first element of the container.
bool is_key_only_type() const noexcept
Returns true, when this associative container stores only keys.
type get_key_type() const noexcept
Returns the type from the key of this associative container.
std::pair< const_iterator, bool > insert(argument key)
Insert a key into the container.
bool is_empty() const noexcept
Checks if the container has no elements.
~variant_associative_view() noexcept
Destroys the variant_associative_view.
std::size_t erase(argument key)
Removes the element (if one exists) with the key equivalent to key.
std::size_t get_size() const noexcept
Returns the number of elements in the associative container.
type get_value_type() const noexcept
Returns the type object from the value of this associative container.
type get_type() const noexcept
Returns the type object of this associative container.
std::pair< const_iterator, const_iterator > equal_range(argument key)
Returns a range containing all elements with the given key in the container.
friend class variant
Definition variant_associative_view.h:436
friend class argument
Definition variant_associative_view.h:437
bool is_valid() const noexcept
Returns true if this variant_associative_view is valid, that means the object is holding some data.
void swap(variant_associative_view &other) noexcept
Swaps this variant_associative_view with the other variant_associative_view.
Definition access_levels.h:34
detail::enum_data< Enum_Type > value(string_view, Enum_Type value)
The value function should be used to add a mapping from enum name to value during the registration pr...
Generated on Thu May 22 2025 04:13:43 for rttr - 0.9.6 by doxygen.