This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libstdc++/78231] Should std::sort use unqualifed iter_swap?


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78231

--- Comment #4 from Alfredo <correaa at llnl dot gov> ---
ok, thanks for the clarification. 
So algorithms on iterators that swap use `::std::iter_swap`? (I didn't know
that.) That is step forward. 

Is then one allowed to overload/specialize `std::iter_swap`? Just like one does
with `swap`?

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