Vector with Incomplete type (C++)
struct V : std::vector<S> {};
would work as well.
see also
- boost
- My favourite memory leak - beware of swapping self referring vector above V v.swap( v.front());
Written on July 10, 2018, Last update on June 19, 2024
c++
tree
vector