EnTT 3.14.0
|
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 195 of file container.hpp.
using entt::basic_meta_associative_container_traits< Type >::iterator = typename meta_associative_container::iterator |
Meta iterator type.
Definition at line 201 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 199 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 247 of file container.hpp.
|
inlinestatic |
Clears a container.
container | Opaque pointer to a container of the given type. |
Definition at line 220 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 259 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 285 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 297 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 271 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 231 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 211 of file container.hpp.
|
staticconstexpr |
True in case of key-only containers, false otherwise.
Definition at line 204 of file container.hpp.