How to Pass a Polymorphic Object to an STL Algorithm
▻https://www.fluentcpp.com/2018/04/17/pass-polymorphic-object-stl-algorithm
As we can read in the opening chapter of Effective C++, C++ is a federation of 4 languages: the procedural part coming from C, the object-oriented part, the STL part (following a functional programming paradigm), the generic part with templates. And what’s more, all of those 4 sub-languages are part of one whole: the C++ […]