Isle
Loading...
Searching...
No Matches
List< _TYPE > Class Template Reference

[AI] Custom wrapper around std::list providing consistent allocator usage and swap semantics. More...

#include <mxstl.h>

Inheritance diagram for List< _TYPE >:
Collaboration diagram for List< _TYPE >:

Public Types

typedef List< _TYPE > _Myt
 [AI] Self type for member use. [AI] More...
 
typedef allocator< _TYPE > _A
 [AI] Allocator type. [AI] More...
 

Public Member Functions

 List ()
 [AI] Constructs an empty List. More...
 
 List (size_type _N, const _TYPE &_V=_TYPE())
 [AI] Constructs a List with a specified number of elements and initial value. More...
 
void swap (_Myt &_X)
 [AI] Swaps the contents of this List with another. More...
 

Friends

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

Detailed Description

template<class _TYPE>
class List< _TYPE >

[AI] Custom wrapper around std::list providing consistent allocator usage and swap semantics.

[AI] Used for game-specific collections requiring linked list behavior.

Definition at line 83 of file mxstl.h.

Member Typedef Documentation

◆ _A

template<class _TYPE >
typedef allocator<_TYPE> List< _TYPE >::_A

[AI] Allocator type. [AI]

Definition at line 87 of file mxstl.h.

◆ _Myt

template<class _TYPE >
typedef List<_TYPE> List< _TYPE >::_Myt

[AI] Self type for member use. [AI]

Definition at line 86 of file mxstl.h.

Constructor & Destructor Documentation

◆ List() [1/2]

template<class _TYPE >
List< _TYPE >::List ( )
inlineexplicit

[AI] Constructs an empty List.

Definition at line 92 of file mxstl.h.

◆ List() [2/2]

template<class _TYPE >
List< _TYPE >::List ( size_type  _N,
const _TYPE &  _V = _TYPE() 
)
inlineexplicit

[AI] Constructs a List with a specified number of elements and initial value.

Parameters
_NNumber of elements. [AI]
_VValue to fill with. [AI]

Definition at line 100 of file mxstl.h.

Member Function Documentation

◆ swap()

template<class _TYPE >
void List< _TYPE >::swap ( _Myt _X)
inline

[AI] Swaps the contents of this List with another.

Parameters
_XReference to the other List. [AI]

Definition at line 107 of file mxstl.h.

Friends And Related Function Documentation

◆ swap

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

[AI] Friend swap for efficient List swapping.

Parameters
_XFirst List. [AI]
_YSecond List. [AI]

Definition at line 117 of file mxstl.h.


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