How to re-assign a vector with some constants ?

Hi all,
I have a vector declared somewhere : vector<int> v(2);
I want to change its values. v = {4, 5}; does not work, nor v = vector<int>({4, 5});
Is there a direct mean to do it overelse than v[0] = 4; v[1] = 5; ?
Last edited on
Topic archived. No new replies allowed.