std::vector v(N)
declares a variable v
with the type of std::vector
and initializes the vector's size to hold N
ints which are default initialized, meaning in this case that their initial value is undefined.
std::vector
is a template from the C++ standard library which implements a resizable array whose elements are stored contiguously in memory. It is essentially a safer alternative to C arrays.