I’m writing a widget kit for the Nano-X window system. In my base class view, I have a vector defined:
std::vector<RSMKit::View *> children;
Is it possible to call a function (GrReparentWindow in this case) when an item is added or removed from the vector so that the newly added widget can be shown?
No. Do not inherit from
std::vector. Just encapsulate it.