C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Reducing push_back
template instantiations.
Reducing push_back
template instantiations.
5-4. How could we reduce the number of template instantiations required by our implementation of push_back? (Hint: Look at our implementation of end in section 5.11.5 again.) How does that interact with the refactoring in the previous exercise?