(C++) std::memcpy

February 24, 2017 · View on GitHub

 

 

 

 

 

(C++) std::memcpy

 

std::memcpy (an abbreviation of 'memory copy') is an STL function to copy raw memory.

 

 

 

 

 

Examples

 

  • std::memcpy example 1: copying a std::vector
  • std::memcpy example 2: benchmark std::memcpy versus std::copy