EnTT 3.14.0
|
General purpose implementation of meta sequence container traits. More...
#include <container.hpp>
Public Types | |
using | size_type = typename meta_sequence_container::size_type |
Unsigned integer type. | |
using | iterator = typename meta_sequence_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 bool | resize (void *container, const size_type sz) |
Resizes 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 iterator | insert (const meta_ctx &area, void *container, const void *value, const void *cref, const iterator &it) |
Assigns one element to a container and constructs its object from a given opaque instance. | |
static iterator | erase (const meta_ctx &area, void *container, const iterator &it) |
Erases an element from a container. | |
Static Public Attributes | |
static constexpr bool | fixed_size = internal::fixed_size_sequence_container_v<Type> |
True in case of key-only containers, false otherwise. | |
General purpose implementation of meta sequence container traits.
Type | Type of underlying sequence container. |
Definition at line 62 of file container.hpp.
using entt::basic_meta_sequence_container_traits< Type >::iterator = typename meta_sequence_container::iterator |
Meta iterator type.
Definition at line 68 of file container.hpp.
using entt::basic_meta_sequence_container_traits< Type >::size_type = typename meta_sequence_container::size_type |
Unsigned integer type.
Definition at line 66 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 133 of file container.hpp.
|
inlinestatic |
Clears a container.
container | Opaque pointer to a container of the given type. |
Definition at line 87 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 145 of file container.hpp.
|
inlinestatic |
Erases an element from a container.
area | The context to pass to the newly created iterator. |
container | Opaque pointer to a container of the given type. |
it | An opaque iterator to the element to erase. |
Definition at line 180 of file container.hpp.
|
inlinestatic |
Assigns one element to a container and constructs its object from a given opaque instance.
area | The context to pass to the newly created iterator. |
container | Opaque pointer to a container of the given type. |
value | Optional opaque instance of the object to construct (as value type). |
cref | Optional opaque instance of the object to construct (as decayed const reference type). |
it | Iterator before which the element will be inserted. |
Definition at line 162 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 102 of file container.hpp.
|
inlinestatic |
Resizes a container.
container | Opaque pointer to a container of the given type. |
sz | The new number of elements. |
Definition at line 117 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 78 of file container.hpp.
|
staticconstexpr |
True in case of key-only containers, false otherwise.
Definition at line 71 of file container.hpp.