Topic: std::sort


Author: "Bill Wade" <bill.wade@stoner.com>
Date: 2000/03/30
Raw View
Paul Black <paul.black@oxsemi.com> wrote in message
news:38D9D777.2B6E614B@oxsemi.com...
> I can't find any references that std::sort uses std::swap. Is it
> mentioned anywhere or must it be assumed that it doesn't?

I don't believe there is any requirement one way or another.  It might use
std::swap, it might use std::iter_swap, it might do something else entirely.



---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]






Author: Paul Black <paul.black@oxsemi.com>
Date: 2000/03/24
Raw View
I can't find any references that std::sort uses std::swap. Is it
mentioned anywhere or must it be assumed that it doesn't?

Paul

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]