Advice Can I express a function that consumes an object? Meaning that its destructor is not run on the moved-from object? Like the proposed library function trivially_locate_at itself? template <class T> T* trivially_relocate_at(T* dst, T* src); Naively, if the library authors can, so should I. Problem: Where is the magic sauce? That function signature does not convey that it effectively destructs an object at src, or the reverse problem, that it effectively constructs an object at dst.
Ben Voigt
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with Ben
Contact Ben, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack