Share via


CStringElementTraits::CopyElements

Call this static function to copy CString elements stored in a collection class object.

static void CopyElements( 
   T* pDest, 
   const T* pSrc, 
   size_t nElements  
);

Parameters

  • pDest
    Pointer to the first element that will receive the copied data.

  • pSrc
    Pointer to the first element to copy.

  • nElements
    The number of elements to copy.

Remarks

The source and destination elements should not overlap.

Requirements

Header: cstringt.h

See Also

Reference

CStringElementTraits Class

CStringElementTraits::RelocateElements