STL-compatible dynamic sequence container traits.
More...
#include <entt.hpp>
|
static bool | resize ([[maybe_unused]] Container &cont, [[maybe_unused]] typename Container::size_type sz) |
| Resizes the given container to contain the given number of elements. More...
|
|
static std::pair< typename Container::iterator, bool > | insert ([[maybe_unused]] Container &cont, [[maybe_unused]] typename Container::const_iterator it, [[maybe_unused]] const typename Container::value_type &value) |
| Inserts an element at the specified location of the given container. More...
|
|
static std::pair< typename Container::iterator, bool > | erase ([[maybe_unused]] Container &cont, [[maybe_unused]] typename Container::const_iterator it) |
| Removes the element at the specified location from the given container. More...
|
|
template<typename Container>
struct entt::dynamic_sequence_container< Container >
STL-compatible dynamic sequence container traits.
- Template Parameters
-
Container | The type of the container. |
◆ erase()
template<typename Container >
static std::pair<typename Container::iterator, bool> entt::dynamic_sequence_container< Container >::erase |
( |
[[maybe_unused] ] Container & |
cont, |
|
|
[[maybe_unused] ] typename Container::const_iterator |
it |
|
) |
| |
|
inlinestatic |
Removes the element at the specified location from the given container.
- Parameters
-
cont | The container from which to remove the element. |
it | Iterator to the element to remove. |
- Returns
- A pair consisting of an iterator following the last removed element (in case of success) and a bool denoting whether the insertion took place.
◆ insert()
template<typename Container >
static std::pair<typename Container::iterator, bool> entt::dynamic_sequence_container< Container >::insert |
( |
[[maybe_unused] ] Container & |
cont, |
|
|
[[maybe_unused] ] typename Container::const_iterator |
it, |
|
|
[[maybe_unused] ] const typename Container::value_type & |
value |
|
) |
| |
|
inlinestatic |
Inserts an element at the specified location of the given container.
- Parameters
-
cont | The container into which to insert the element. |
it | Iterator before which the element will be inserted. |
value | Element value to insert. |
- Returns
- A pair consisting of an iterator to the inserted element (in case of success) and a bool denoting whether the insertion took place.
◆ resize()
template<typename Container >
Resizes the given container to contain the given number of elements.
- Parameters
-
cont | The container to resize. |
sz | The new size of the container. |
- Returns
- True in case of success, false otherwise.
The documentation for this struct was generated from the following file: