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

Basic STL-compatible container traits. More...

#include <container.hpp>

Inheritance diagram for entt::basic_container< Container >:
Inheritance graph
[legend]

Static Public Member Functions

static Container::size_type size (const Container &cont)
 Returns the size of the given container. More...
 
static Container::iterator begin (Container &cont)
 Returns an iterator to the first element of the given container. More...
 
static Container::const_iterator cbegin (const Container &cont)
 Returns an iterator to the first element of the given container. More...
 
static Container::iterator end (Container &cont)
 Returns an iterator past the last element of the given container. More...
 
static Container::const_iterator cend (const Container &cont)
 Returns an iterator past the last element of the given container. More...
 

Detailed Description

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

Basic STL-compatible container traits.

Template Parameters
ContainerThe type of the container.

Definition at line 38 of file container.hpp.

Member Function Documentation

◆ begin()

template<typename Container >
static Container::iterator entt::basic_container< Container >::begin ( Container &  cont)
inlinestatic

Returns an iterator to the first element of the given container.

Parameters
contThe container for which to return the iterator.
Returns
An iterator to the first element of the given container.

Definition at line 53 of file container.hpp.

◆ cbegin()

template<typename Container >
static Container::const_iterator entt::basic_container< Container >::cbegin ( const Container &  cont)
inlinestatic

Returns an iterator to the first element of the given container.

Parameters
contThe container for which to return the iterator.
Returns
An iterator to the first element of the given container.

Definition at line 62 of file container.hpp.

◆ cend()

template<typename Container >
static Container::const_iterator entt::basic_container< Container >::cend ( const Container &  cont)
inlinestatic

Returns an iterator past the last element of the given container.

Parameters
contThe container for which to return the iterator.
Returns
An iterator past the last element of the given container.

Definition at line 80 of file container.hpp.

◆ end()

template<typename Container >
static Container::iterator entt::basic_container< Container >::end ( Container &  cont)
inlinestatic

Returns an iterator past the last element of the given container.

Parameters
contThe container for which to return the iterator.
Returns
An iterator past the last element of the given container.

Definition at line 71 of file container.hpp.

◆ size()

template<typename Container >
static Container::size_type entt::basic_container< Container >::size ( const Container &  cont)
inlinestatic

Returns the size of the given container.

Parameters
contThe container for which to return the size.
Returns
The size of the given container.

Definition at line 44 of file container.hpp.


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