- inheritance
- unless the destructor
~Baseis markedvirtual, the destructor~Childwon't be called ondelete basewherebaseis of typeChild*.
- unless the destructor
- algorithm
lower_bound(first, last, value)andupper_bound(first, last, value)set<int> s { 1, 3, 6, 10, 13, 32, 45 }; // first element x such that x >= 13 s.lower_bound(13); // 13 // first element x such that x > 13
s.upper_bound(13); // 32