What is the simplest way to convert array to vector?
void test(vector _array) { ... } int x[3]={1, 2, 3}; test(x); // Syntax error.
Pointers can be used like any other iterators:
int x[3] = {1, 2, 3}; std::vector v(x, x + 3); test(v)