How would you swap 2 nodes (each node contains several items) in a vector? I have tried using temp nodes and such but it doesn't work (my overloaded equality operator is not working properly)... Any ideas? Thanks.
How would you swap 2 nodes (each node contains several items) in a vector? I have tried using temp nodes and such but it doesn't work (my overloaded equality operator is not working properly)... Any ideas? Thanks.
std::swap_ranges
http://www.cppreference.com/cppalgor...ap_ranges.html
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
THANK YOU SO MUCH!!! such a big help... altho iter_swap was what i needed.