Is there an equivalent of list slicing [1:] from Python in C++ with vectors? I simply want to get all but the first element from a vector.
[1:]
Python\'s lis
This can easily be done using std::vector's copy constructor:
std::vector
v2 = std::vector(v1.begin() + 1, v1.end());