Clementine
Static Public Member Functions | List of all members
entt::dynamic_sequence_container< Container > Struct Template Reference

STL-compatible dynamic sequence container traits. More...

#include <entt.hpp>

Static Public Member Functions

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...
 

Detailed Description

template<typename Container>
struct entt::dynamic_sequence_container< Container >

STL-compatible dynamic sequence container traits.

Template Parameters
ContainerThe type of the container.

Member Function Documentation

◆ 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
contThe container from which to remove the element.
itIterator 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
contThe container into which to insert the element.
itIterator before which the element will be inserted.
valueElement 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 >
static bool entt::dynamic_sequence_container< Container >::resize ( [[maybe_unused] ] Container &  cont,
[[maybe_unused] ] typename Container::size_type  sz 
)
inlinestatic

Resizes the given container to contain the given number of elements.

Parameters
contThe container to resize.
szThe new size of the container.
Returns
True in case of success, false otherwise.

The documentation for this struct was generated from the following file: