Type erasure in C++: how boost::shared_ptr and boost::function work?

Viewed 3705

Type erasure - is that how you call it?

How boost::shared_ptr stores its deleter and how boost::function stores its function object?

Is there any tutorial that teaches the trick?

What is the run-time cost of using type-erased function objects?

1 Answers
Related