Not quite the same as Stack-Overflow Question: Constant Size Vector.
I need a container for size_t with the following properties:
- push_back, contains, find, and erase; as for vector<size_t>
- prescribed fixed memory footprint (I know the maximum number of elements at compile time as a constexpr).
The array class doesn't do the trick because array always contains the given number of elements. So I need a container that distinguishes between the memory it reserves and the items that it actually contains yet.
Who knows a suitable container in the c++2020 standard?