
Discover more from Daily bit(e) of C++
Random C++ knowledge organized in arbitrary order.
Over 1,000 subscribers
Already have an account? Sign in
Daily bit(e) of C++ | Type erasure: inheritance
Daily bit(e) of C++ #316, Type erasure through base class inheritance.
Type erasure is a technique that allows the decoupling of the bit representation of implementation from the user.
This permits the user to be resilient against changes in the implementation and/or to operate on different implementations.
The simplest C++ approach to type erasure is through inheritance.