http://www.w3.org/ns/prov#value | - If we used std::swap then moving each item would involve three assignments.However, for a type which does have std::swap specialised, such as a vector or other such class that has a throwing asignment operator but non-throwing std::swap, option 2 is better and more efficient.
|