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

[AI] Custom wrapper for std::map with consistent allocator and customizable comparator. More...

#include <mxstl.h>

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

Public Types

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

Public Member Functions

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

Friends

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

Detailed Description

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

[AI] Custom wrapper for std::map with consistent allocator and customizable comparator.

[AI] Used as an associative container where fast ordered lookup is required in the game engine.

Definition at line 129 of file mxstl.h.

Member Typedef Documentation

◆ _A

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

[AI] Allocator type [AI]

Definition at line 133 of file mxstl.h.

◆ _Myt

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

[AI] Self type [AI]

Definition at line 132 of file mxstl.h.

Constructor & Destructor Documentation

◆ Map()

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

[AI] Constructs an empty Map with an optional predicate.

Parameters
_PredKey comparator predicate [AI]

Definition at line 139 of file mxstl.h.

Member Function Documentation

◆ swap()

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

[AI] Swaps with another Map.

Parameters
_XReference to another Map of the same type [AI]

Definition at line 147 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 Map.

Parameters
_XFirst Map [AI]
_YSecond Map [AI]

Definition at line 157 of file mxstl.h.


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