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

[AI] Set wrapper utilizing a custom allocator and comparator. More...

#include <mxstl.h>

Inheritance diagram for Set< _K, _Pr >:
Collaboration diagram for Set< _K, _Pr >:

Public Types

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

Public Member Functions

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

Friends

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

Detailed Description

template<class _K, class _Pr>
class Set< _K, _Pr >

[AI] Set wrapper utilizing a custom allocator and comparator.

[AI] Used for storing unique, ordered keys—commonly used for sets of IDs or other unique game elements.

Definition at line 208 of file mxstl.h.

Member Typedef Documentation

◆ _A

template<class _K , class _Pr >
typedef allocator<_K> Set< _K, _Pr >::_A

[AI] Allocator type [AI]

Definition at line 212 of file mxstl.h.

◆ _Myt

template<class _K , class _Pr >
typedef Set<_K, _Pr> Set< _K, _Pr >::_Myt

[AI] Self type [AI]

Definition at line 211 of file mxstl.h.

Constructor & Destructor Documentation

◆ Set()

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

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

Parameters
_PredComparator predicate for ordering [AI]

Definition at line 218 of file mxstl.h.

Member Function Documentation

◆ swap()

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

[AI] Swaps with another Set.

Parameters
_XReference to another Set [AI]

Definition at line 225 of file mxstl.h.

Friends And Related Function Documentation

◆ swap

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

[AI] Friend swap for Set.

Parameters
_XFirst Set [AI]
_YSecond Set [AI]

Definition at line 235 of file mxstl.h.


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