I'm building a class that exposes a sequential container, with a fixed length, but the length isn't known at compile-time.
So when an instance of my class is constructed, a parameter is passed in, to indicate how big the vector needs to be.
But the length needs to be fixed after construction.
I need to guarantee that the resize() function cannot be invoked, while still allowing other parts of my code to modify individual elements within the vector.
(In other words, I can't simply expose the vector as vector<T> const&)
The same goes for any other function which modifies the length, such as insert(), push_back(), etc.
These functions need to be restricted or hidden.
Is this possible?
Or do I really need to build my own fixed_vector wrapper class to hide the undesired functions?