C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Make push_front
as strict as push_back
.
More...
Classes | |
struct | boost::mpl::push_front_impl< chapter5::tiny_tag > |
Front insertion is straightforward. Assert we're not already full. More... | |
struct | boost::mpl::insert_impl< chapter5::tiny_tag > |
Using tiny_insert is O(1) time. More... | |
Make push_front
as strict as push_back
.
5-2. Note that push_back won't compile if its tiny argument already has three elements. How can we get the same guarantees for push_front?