Yuval Ronen
David Abrahams wrote:
The default version of front always takes at least two instantiations (begin<...> and deref<...>). If you can do front in one instantiation and you want the optimization, you'd better specialize it.
If this single instantiation you save is important (which sounds to me like too small a thing to mess with, but if you claim otherwise, I'll take your word for it),
It's at least a 50% savings, and quite possibly more than 50%.
then wouldn't you want to specialize 'back' as well as 'front', if possible? You might be able save an instantiation there as well...
You might want to do that, yes... "if possible" being key words here.
Moreover, if this single instantiation saving is important, should it be specialized for *all* sequences, including those already present in mpl?
I don't have an opinion on it, and I don't see where you're going with that question. -- Dave Abrahams Boost Consulting www.boost-consulting.com