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

Basic STL-compatible container traits. More...

#include <entt.hpp>

Public Types

using iterator = typename Container::iterator
 Iterator type of the container.
 
using const_iterator = typename Container::const_iterator
 Iterator type of the container.
 
using size_type = typename Container::size_type
 Unsigned integer type.
 
using value_type = typename Container::value_type
 Value type of the container.
 

Static Public Member Functions

static size_type size (const Container &cont) ENTT_NOEXCEPT
 Returns the size of the given container. More...
 
static iterator begin (Container &cont)
 Returns an iterator to the first element of the given container. More...
 
static const_iterator cbegin (const Container &cont)
 Returns an iterator to the first element of the given container. More...
 
static iterator end (Container &cont)
 Returns an iterator past the last element of the given container. More...
 
static 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.

Member Function Documentation

◆ begin()

template<typename Container>
static 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.

◆ cbegin()

template<typename Container>
static 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.

◆ cend()

template<typename Container>
static 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.

◆ end()

template<typename Container>
static 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.

◆ size()

template<typename Container>
static 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.

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