
From: "Thorsten Ottosen" <nesotto@cs.auc.dk>
"Peter Dimov" <pdimov@mmltd.net> wrote in message news:015401c54b68$01274540$6401a8c0@pdimov2... | David Abrahams wrote: | > [...] Efficiency | > considerations are usually only used when deciding whether or not to | > provide functionality at all. for example, that's why we don't have | > std::vector::push_front. | | And this is very annoying when you really want to push_front.
cont.insert( cont.begin(), new_element );
The different spelling complicates generic code. That's the same problem with pointer containers relying on clone(). -- Rob Stewart stewart@sig.com Software Engineer http://www.sig.com Susquehanna International Group, LLP using std::disclaimer;