I often find myself wanting to copy the contents of arrays that have a constant size, I usually just write something along the lines of:
float a[4] = {0,1,2,
Below method works for usual arrays as well std:array.
float a[4] = {0,1,2,3}; float b[4]; std::copy(std::begin(a), std::end(a), b);