Thought I share this piece of code to the world. But be aware, I am not sure if this piece of code is safe and efficient. Feel free to improve it or give some feedback and suggestions.
#pragma region DOCUMENTATION ON: STD_COPY_VECTOR_TO_ARRAY
//////////////////////////////////////////////////////////////////////////////
// MACRO: STD_COPY_VECTOR_TO_ARRAY( Vector, Position, Length, Array ) //
// //
// DESCRIPTION: //
// A defined macro that is created to copy selected values of std::vector //
// an array. This defined macro takes 4 arguments. //
// //
// ARGUMENTS: //
// Vector - The std::vector that contains the values that will be copied. //
// Position - Position of the first value from Vector to be copied. //
// Note: The first value of Position is marked by the value of 0 and not 1. //
// Length - Amount of values to be copied from Vector. //
// Array - The Array that the values will be copied to. //
// //
// TIPS: //
// #1 - To copy all values within Vector, set the value of Position to 0 //
// and set the value of Length to the size of Vector (std::vector::size). //
//////////////////////////////////////////////////////////////////////////////
#pragma endregion
#define STD_COPY_VECTOR_TO_ARRAY( Vector, Position, Length, Array ) \
std::copy( Vector.begin( ) + Position, \
Vector.begin( ) + Position + Length , \
Array )