January 2018
Intermediate to advanced
374 pages
9h 53m
English
All algorithms use std::swap and std::move when moving elements around, but only if the move-constructor and move-assignment are marked noexcept. Therefore, it is important to have these implemented for heavy objects when using algorithms. If they are not available and exception free, the elements will be copied instead.