Is there a way to declare and assign a set or values to a vector?

Like:
Code:
vector<int> A = {1,2,4,5,7};