I can create an array and initialize it like this:
int a[] = {10, 20, 30};
How do I create a std::vector and initialize it sim
std::vector
It is pretty convenient to create a vector inline without defining variable when writing test, for example:
assert(MyFunction() == std::vector{1, 3, 4}); // <- this.