STL-compatible dynamic key-value associative container traits.
More...
#include <entt.hpp>
|
static bool | insert ([[maybe_unused]] Container &cont, [[maybe_unused]] const typename Container::key_type &key, [[maybe_unused]] const typename Container::mapped_type &value) |
| Inserts an element (a key/value pair) into the given container. More...
|
|
template<typename Container>
struct entt::dynamic_associative_key_value_container< Container >
STL-compatible dynamic key-value associative container traits.
- Template Parameters
-
Container | The type of the container. |
◆ insert()
template<typename Container >
static bool entt::dynamic_associative_key_value_container< Container >::insert |
( |
[[maybe_unused] ] Container & |
cont, |
|
|
[[maybe_unused] ] const typename Container::key_type & |
key, |
|
|
[[maybe_unused] ] const typename Container::mapped_type & |
value |
|
) |
| |
|
inlinestatic |
Inserts an element (a key/value pair) into the given container.
- Parameters
-
cont | The container in which to insert the element. |
key | The key of the element to insert. |
value | The value of the element to insert. |
- Returns
- A bool denoting whether the insertion took place.
The documentation for this struct was generated from the following file: