struct Uct
{
std::vector<int> vec{10};
};
The code above creates vector that contains single element with value 10. But I need to initialize the vector with size 10 instead. Just like this:
std::vector<int> vec(10);
How can I do this with in-class initialization?