- inheritance
- unless the destructor
~Base
is markedvirtual
, the destructor~Child
won't be called ondelete base
wherebase
is 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