Header Reference: <utility>
Header Reference: <utility>
Move/forward helpers, pairs, piecewise construction, integer sequences, and general-purpose utility facilities from <utility>.
Header Reference: <utility>
Move/forward helpers, pairs, piecewise construction, integer sequences, and general-purpose utility facilities from <utility>.
Use reference pages to confirm names, categories, nearby facilities, and the constraints that matter before writing or reviewing code.
Header reference pages are meant to answer a practical question quickly: what this header provides, when to reach for it, and which usage rules are easiest to get wrong.
<utility>std::movestd::forwardstd::move_if_noexceptstd::swapstd::exchangestd::as_conststd::pairstd::make_pairstd::piecewise_constructstd::integer_sequence, std::index_sequence, std::make_index_sequencestd::in_place, std::in_place_type, std::in_place_indexUse <utility> for fundamental building blocks that support move semantics, forwarding, tuple/pair-style composition, and generic helper patterns.
std::move does not move by itself; it casts to an rvalue reference.#include <utility>
int main() {
// Start with the primary facility from <utility>.
// Then verify lifetime, invalidation, ordering, or error-handling rules.
return 0;
}