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

Basic STL-compatible container traits. More...

#include <container.hpp>

Public Types

using iterator = typename Container::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) 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 iterator end (Container &cont)
 Returns an iterator past the last element of the given container. More...
 

Detailed Description

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

Basic STL-compatible container traits.

Template Parameters
ContainerThe type of the container.

Definition at line 31 of file container.hpp.

Member Function Documentation

◆ begin()

template<typename Container >
static iterator entt::internal::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.

◆ end()

template<typename Container >
static iterator entt::internal::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 62 of file container.hpp.

◆ size()

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

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: