This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Why doesn't iter_swap use swap?


Hello,

I suspect this might have a simple answer, but why doesn't iter_swap use swap? I can't see any immediate disadvantages to this, and it would have the major advantage that any specialisations of swap would then be used by iter_swap (which is how I discovered the problem, while trying to overload swap and then wondering why it wasn't getting used by reverse and other algorithms...)

Chris


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]