ReactOS  0.4.12-dev-36-g472787f
ATL::CElementTraitsBase< T > Class Template Reference

#include <atlcoll.h>

Inheritance diagram for ATL::CElementTraitsBase< T >:

Public Types

typedef const TINARGTYPE
 
typedef TOUTARGTYPE
 

Static Public Member Functions

static void CopyElements (_Out_writes_all_(NumElements) T *Dest, _In_reads_(NumElements) const T *Source, _In_ size_t NumElements)
 
static void RelocateElements (_Out_writes_all_(NumElements) T *Dest, _In_reads_(NumElements) T *Source, _In_ size_t NumElements)
 

Detailed Description

template<typename T>
class ATL::CElementTraitsBase< T >

Definition at line 71 of file atlcoll.h.

Member Typedef Documentation

◆ INARGTYPE

template<typename T >
typedef const T& ATL::CElementTraitsBase< T >::INARGTYPE

Definition at line 74 of file atlcoll.h.

◆ OUTARGTYPE

template<typename T >
typedef T& ATL::CElementTraitsBase< T >::OUTARGTYPE

Definition at line 75 of file atlcoll.h.

Member Function Documentation

◆ CopyElements()

template<typename T >
static void ATL::CElementTraitsBase< T >::CopyElements ( _Out_writes_all_(NumElements) T Dest,
_In_reads_(NumElements) const T Source,
_In_ size_t  NumElements 
)
inlinestatic

Definition at line 77 of file atlcoll.h.

81  {
82  for (size_t i = 0; i < NumElements; i++)
83  {
84  Dest[i] = Source[i];
85  }
86  }
GLenum GLclampf GLint i
Definition: glfuncs.h:14
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
Definition: ndis.h:3149

◆ RelocateElements()

template<typename T >
static void ATL::CElementTraitsBase< T >::RelocateElements ( _Out_writes_all_(NumElements) T Dest,
_In_reads_(NumElements) T Source,
_In_ size_t  NumElements 
)
inlinestatic

Definition at line 88 of file atlcoll.h.

92  {
93  memmove_s(Dest, NumElements * sizeof(T), Source, NumElements * sizeof(T));
94  }
#define T
Definition: mbstring.h:31
int CDECL memmove_s(void *dest, size_t numberOfElements, const void *src, size_t count)
Definition: heap.c:548
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
Definition: ndis.h:3149

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