EnTT  3.8.0
Static Public Member Functions | List of all members
entt::basic_sequence_container< Container > Struct Template Reference

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

#include <container.hpp>

Static Public Member Functions

static Container::reference get (Container &cont, typename Container::size_type pos)
 Returns a reference to the element at the specified location of the given container (no bounds checking is performed). More...
 
static Container::const_reference cget (const Container &cont, typename Container::size_type pos)
 Returns a reference to the element at the specified location of the given container (no bounds checking is performed). More...
 

Detailed Description

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

Basic STL-compatible sequence container traits.

Template Parameters
ContainerThe type of the container.

Definition at line 151 of file container.hpp.

Member Function Documentation

◆ cget()

template<typename Container >
static Container::const_reference entt::basic_sequence_container< Container >::cget ( const Container &  cont,
typename Container::size_type  pos 
)
inlinestatic

Returns a reference to the element at the specified location of the given container (no bounds checking is performed).

Parameters
contThe container from which to get the element.
posThe position of the element to return.
Returns
A reference to the requested element.

Definition at line 164 of file container.hpp.

◆ get()

template<typename Container >
static Container::reference entt::basic_sequence_container< Container >::get ( Container &  cont,
typename Container::size_type  pos 
)
inlinestatic

Returns a reference to the element at the specified location of the given container (no bounds checking is performed).

Parameters
contThe container from which to get the element.
posThe position of the element to return.
Returns
A reference to the requested element.

Definition at line 159 of file container.hpp.


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