Compartir a través de


CStringElementTraits::RelocateElements

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

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

Parameters

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

  • pSrc
    Pointer to the first element to relocate.

  • nElements
    The number of elements to relocate.

Remarks

This static function calls memmove, which is sufficient for most data types. If the objects being moved contain pointers to their own members, this static function will need to be overridden.

Requirements

Header: cstringt.h

See Also

Reference

CStringElementTraits Class

CStringElementTraits::CopyElements

Other Resources

CStringElementTraits Members