> Record rec[10];
Isn't it just
std::array<Record, 10> a;

std::array - cppreference.com