In Nicola Gigante's lecture in 2015, he mentions (at the beginning) that there are no pure virtual functions in the Standard Library (or he's not aware of any). I believe that Alex Stepanov was against this language feature but since the initial STL design, have any pure virtuals creeped into the Standard library?
FWIW (and correct me if I'm wrong) the deleters in unique pointers ultimately use virtual dispatching in most implementations but these are not pure virtuals.
STL
(iterators, algorithms and containers) part?STL
. I suspect then that the point is that, inC++
generic programming as implemented in theSTL
is completely orthogonal to what might be considered typical methods in Object Oriented Programming.std::string
,std::complex
, exceptions. Nowstd::string
andstd::complex
are generally too time-critical to use virtual functions, nor is there a need to - polymorphism simply isn't needed for straightforward values. But <iostream> and exceptions do use virtual functions.