...

/

Run-time Polymorphism with Ranges

Run-time Polymorphism with Ranges

Understand how run-time polymorphism can be achieved using inputRangeObject() and outputRangeObject().

Run-time polymorphism with inputRangeObject() and outputRangeObject()

Being implemented mostly as templates, ranges exhibit compile-time polymorphism, which we have been taking advantage of in the examples of this chapter and previous chapters. (For differences between compile-time polymorphism and run-time polymorphism, see the “Compile-time polymorphism” section in the more templates chapter.)

Compile-time polymorphism has to deal with the fact that every ...