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

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

#include <entt.hpp>

Public Types

using key_type = typename Container::key_type
 Key type of the sequence container.
 

Static Public Member Functions

static Container::iterator find (Container &cont, const key_type &key)
 Returns an iterator to the element with key equivalent to the given one, if any. More...
 
static Container::const_iterator cfind (const Container &cont, const key_type &key)
 Returns an iterator to the element with key equivalent to the given one, if any. More...
 

Detailed Description

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

Basic STL-compatible associative container traits.

Template Parameters
ContainerThe type of the container.

Member Function Documentation

◆ cfind()

template<typename Container >
static Container::const_iterator entt::basic_associative_container< Container >::cfind ( const Container &  cont,
const key_type key 
)
inlinestatic

Returns an iterator to the element with key equivalent to the given one, if any.

Parameters
contThe container in which to search for the element.
keyThe key of the element to search.
Returns
An iterator to the element with the given key, if any.

◆ find()

template<typename Container >
static Container::iterator entt::basic_associative_container< Container >::find ( Container &  cont,
const key_type key 
)
inlinestatic

Returns an iterator to the element with key equivalent to the given one, if any.

Parameters
contThe container in which to search for the element.
keyThe key of the element to search.
Returns
An iterator to the element with the given key, if any.

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