Is there an elegant way to create and initialize a const std::vector like const T a[] = { ... } to a fixed (and small) number of val
const std::vector
const T a[] = { ... }
How about:
int ar[]={1,2,3,4,5,6}; const int TotalItems = sizeof(ar)/sizeof(ar[0]); std::vector v(ar, ar+TotalItems);