|
EnTT 3.13.1
|
General purpose implementation of meta associative container traits. More...
#include <container.hpp>
Public Types | |
| using | size_type = typename meta_associative_container::size_type |
| Unsigned integer type. | |
| using | iterator = typename meta_associative_container::iterator |
| Meta iterator type. | |
Static Public Member Functions | |
| static size_type | size (const void *container) |
| Returns the number of elements in a container. | |
| static bool | clear (void *container) |
| Clears a container. | |
| static bool | reserve (void *container, const size_type sz) |
| Increases the capacity of a container. | |
| static iterator | begin (const meta_ctx &area, void *container, const void *as_const) |
| Returns a possibly const iterator to the beginning. | |
| static iterator | end (const meta_ctx &area, void *container, const void *as_const) |
| Returns a possibly const iterator to the end. | |
| static bool | insert (void *container, const void *key, const void *value) |
| Inserts an element into a container, if the key does not exist. | |
| static size_type | erase (void *container, const void *key) |
| Removes an element from a container. | |
| static iterator | find (const meta_ctx &area, void *container, const void *as_const, const void *key) |
| Finds an element with a given key. | |
Static Public Attributes | |
| static constexpr bool | key_only = internal::key_only_associative_container_v<Type> |
| True in case of key-only containers, false otherwise. | |
General purpose implementation of meta associative container traits.
| Type | Type of underlying associative container. |
Definition at line 193 of file container.hpp.
| using entt::basic_meta_associative_container_traits< Type >::iterator = typename meta_associative_container::iterator |
Meta iterator type.
Definition at line 202 of file container.hpp.
| using entt::basic_meta_associative_container_traits< Type >::size_type = typename meta_associative_container::size_type |
Unsigned integer type.
Definition at line 200 of file container.hpp.
|
inlinestatic |
Returns a possibly const iterator to the beginning.
| area | The context to pass to the newly created iterator. |
| container | Opaque pointer to a container of the given type. |
| as_const | Const opaque pointer fallback. |
Definition at line 245 of file container.hpp.
|
inlinestatic |
Clears a container.
| container | Opaque pointer to a container of the given type. |
Definition at line 218 of file container.hpp.
|
inlinestatic |
Returns a possibly const iterator to the end.
| area | The context to pass to the newly created iterator. |
| container | Opaque pointer to a container of the given type. |
| as_const | Const opaque pointer fallback. |
Definition at line 257 of file container.hpp.
|
inlinestatic |
Removes an element from a container.
| container | Opaque pointer to a container of the given type. |
| key | An opaque key value of an element to remove. |
Definition at line 283 of file container.hpp.
|
inlinestatic |
Finds an element with a given key.
| area | The context to pass to the newly created iterator. |
| container | Opaque pointer to a container of the given type. |
| as_const | Const opaque pointer fallback. |
| key | Opaque key value of an element to search for. |
Definition at line 295 of file container.hpp.
|
inlinestatic |
Inserts an element into a container, if the key does not exist.
| container | Opaque pointer to a container of the given type. |
| key | An opaque key value of an element to insert. |
| value | Optional opaque value to insert (key-value containers). |
Definition at line 269 of file container.hpp.
|
inlinestatic |
Increases the capacity of a container.
| container | Opaque pointer to a container of the given type. |
| sz | Desired capacity. |
Definition at line 229 of file container.hpp.
|
inlinestatic |
Returns the number of elements in a container.
| container | Opaque pointer to a container of the given type. |
Definition at line 209 of file container.hpp.
|
staticconstexpr |
True in case of key-only containers, false otherwise.
Definition at line 197 of file container.hpp.