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

[AI] Multiset wrapper for storing ordered collections of non-unique elements with a custom allocator. More...

#include <mxstl.h>

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

Public Types

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

Public Member Functions

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

Friends

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

Detailed Description

template<class _K, class _Pr>
class Multiset< _K, _Pr >

[AI] Multiset wrapper for storing ordered collections of non-unique elements with a custom allocator.

[AI] Used for grouped elements where duplicates are permitted, such as a collection of repeated resource tokens.

Definition at line 247 of file mxstl.h.

Member Typedef Documentation

◆ _A

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

[AI] Allocator type [AI]

Definition at line 251 of file mxstl.h.

◆ _Myt

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

[AI] Self type [AI]

Definition at line 250 of file mxstl.h.

Constructor & Destructor Documentation

◆ Multiset()

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

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

Parameters
_PredComparator predicate [AI]

Definition at line 257 of file mxstl.h.

Member Function Documentation

◆ swap()

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

[AI] Swaps with another Multiset.

Parameters
_XReference to another Multiset [AI]

Definition at line 265 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 Multiset.

Parameters
_XFirst Multiset [AI]
_YSecond Multiset [AI]

Definition at line 275 of file mxstl.h.


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