|
|
| Iterable ()=default |
| | Default constructor.
|
| |
| | Iterable (const Container &data) |
| | Constructor from existing container.
|
| |
| | Iterable (Container &&data) |
| | Move constructor from existing container.
|
| |
|
| Iterable (const Iterable &)=default |
| | Copy constructor.
|
| |
|
| Iterable (Iterable &&)=default |
| | Move constructor.
|
| |
|
virtual | ~Iterable ()=default |
| | Virtual destructor.
|
| |
| Iterable & | operator= (const Iterable &)=default |
| | Copy assignment operator.
|
| |
| Iterable & | operator= (Iterable &&)=default |
| | Move assignment operator.
|
| |
| bool | operator== (const Iterable &other) const |
| | Equality operator.
|
| |
| bool | operator!= (const Iterable &other) const |
| | Inequality operator.
|
| |
| iterator | begin () noexcept |
| | Gets begin iterator.
|
| |
| const_iterator | begin () const noexcept |
| | Gets const begin iterator.
|
| |
| iterator | end () noexcept |
| | Gets end iterator.
|
| |
| const_iterator | end () const noexcept |
| | Gets const end iterator.
|
| |
| const_iterator | cbegin () const noexcept |
| | Gets const begin iterator.
|
| |
| const_iterator | cend () const noexcept |
| | Gets const end iterator.
|
| |
| reverse_iterator | rbegin () noexcept |
| | Gets reverse begin iterator.
|
| |
| reverse_iterator | rend () noexcept |
| | Gets reverse end iterator.
|
| |
| const_reverse_iterator | rbegin () const noexcept |
| | Gets const reverse begin iterator.
|
| |
| const_reverse_iterator | rend () const noexcept |
| | Gets const reverse end iterator.
|
| |
| const_reverse_iterator | crbegin () const noexcept |
| | Gets const reverse begin iterator.
|
| |
| const_reverse_iterator | crend () const noexcept |
| | Gets const reverse end iterator.
|
| |
| size_type | size () const noexcept |
| | Gets the size of the container.
|
| |
| bool | empty () const noexcept |
| | Checks if the container is empty.
|
| |
| reference | operator[] (size_type i) |
| | Access element at given index.
|
| |
|
reference | operator[] (size_type i) |
| |
| auto | operator[] (size_type i) -> decltype(auto) |
| | Access element at given index (non-const version)
|
| |
template<typename K >
requires (Type::HasMappedType<Container>) |
| auto | operator[] (K const &key) -> decltype(auto) |
| |
template<typename K >
requires (Type::HasMappedType<const Container>) |
| auto | operator[] (K const &key) const -> decltype(auto) |
| |
| const_reference | operator[] (size_type i) const |
| | Access element at given index (const version)
|
| |
| const_reference | operator[] (size_type i) const |
| | Access element at given index (const version)
|
| |
| auto | operator[] (size_type i) const -> decltype(auto) |
| | Access element at given index (const version)
|
| |
| void | add (const value_type &value) |
| | Adds an element to the container.
|
| |
| void | add (const value_type &value) |
| | Adds an element to the container.
|
| |
|
void | add (const value_type &value) |
| | Adds an element to associative containers via insert
|
| |
| void | add (value_type &&value) |
| | Adds an element to the container (move version)
|
| |
| void | add (value_type &&value) |
| | Adds an element to the container (move version)
|
| |
|
void | add (value_type &&value) |
| | Adds an element to associative containers via insert (move version)
|
| |
| bool | has_item (const value_type &value) const |
| | Checks if the container has a specific item.
|
| |
template<typename M >
requires Type::HasMappedType<const Container> && std::convertible_to<M, typename Container::mapped_type> |
| bool | has_item (M const &value) const |
| | Checks if the container has a specific item (for associative containers)
|
| |
template<typename K >
requires Type::HasMappedType<const Container> |
| bool | has_key (const K &key) const |
| | Checks if the container has a specific key (for associative containers)
|
| |
template<typename Container>
class StormByte::Iterable< Container >
A generic iterable container wrapper.
- Template Parameters
-
| Container | The underlying container type |
The Iterable class template provides a generic wrapper around standard container types, enabling iteration capabilities with custom iterator and const iterator classes.