Isle
Loading...
Searching...
No Matches
Multimap< _K, _TYPE, _Pr > Class Template Reference

[AI] Custom multimap supporting multiple values per key with custom allocator and comparator. More...

#include <mxstl.h>

Inheritance diagram for Multimap< _K, _TYPE, _Pr >:
Collaboration diagram for Multimap< _K, _TYPE, _Pr >:

Public Types

typedef Multimap< _K, _TYPE, _Pr > _Myt
 [AI] Self type [AI] More...
 
typedef allocator< _TYPE > _A
 [AI] Allocator type [AI] More...
 

Public Member Functions

 Multimap (const _Pr &_Pred=_Pr())
 [AI] Constructs an empty Multimap with optional predicate. More...
 
void swap (_Myt &_X)
 [AI] Swaps with another Multimap. More...
 

Friends

void swap (_Myt &_X, _Myt &_Y)
 [AI] Friend swap for Multimap. More...
 

Detailed Description

template<class _K, class _TYPE, class _Pr>
class Multimap< _K, _TYPE, _Pr >

[AI] Custom multimap supporting multiple values per key with custom allocator and comparator.

[AI] Used where duplicate keys are needed within the engine's associative containers.

Definition at line 169 of file mxstl.h.

Member Typedef Documentation

◆ _A

template<class _K , class _TYPE , class _Pr >
typedef allocator<_TYPE> Multimap< _K, _TYPE, _Pr >::_A

[AI] Allocator type [AI]

Definition at line 173 of file mxstl.h.

◆ _Myt

template<class _K , class _TYPE , class _Pr >
typedef Multimap<_K, _TYPE, _Pr> Multimap< _K, _TYPE, _Pr >::_Myt

[AI] Self type [AI]

Definition at line 172 of file mxstl.h.

Constructor & Destructor Documentation

◆ Multimap()

template<class _K , class _TYPE , class _Pr >
Multimap< _K, _TYPE, _Pr >::Multimap ( const _Pr &  _Pred = _Pr())
inlineexplicit

[AI] Constructs an empty Multimap with optional predicate.

Parameters
_PredKey comparator predicate [AI]

Definition at line 179 of file mxstl.h.

Member Function Documentation

◆ swap()

template<class _K , class _TYPE , class _Pr >
void Multimap< _K, _TYPE, _Pr >::swap ( _Myt _X)
inline

[AI] Swaps with another Multimap.

Parameters
_XReference to another Multimap [AI]

Definition at line 186 of file mxstl.h.

Friends And Related Function Documentation

◆ swap

template<class _K , class _TYPE , class _Pr >
void swap ( _Myt _X,
_Myt _Y 
)
friend

[AI] Friend swap for Multimap.

Parameters
_XFirst Multimap [AI]
_YSecond Multimap [AI]

Definition at line 196 of file mxstl.h.


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