#include <print>
#include <string>
#include <utility>
int main() {
std::string src = "a long string that owns a heap buffer";
// move steals src's buffer; no character is copied
std::string dst = std::move(src);
std::println("{}", dst);
// src is now valid but unspecified (typically empty)
std::println("moved-from size: {}", src.size());
}hand off a resource instead of copying