C++26: std::polymorphic -- Sandor Dargo
Sandor Dargo explains std::polymorphic, part of C++26 proposal P3019R14 alongside std::indirect. The type owns a heap-allocated object whose dynamic type may be T or any class derived from T. Copying it performs a type-erased deep copy that preserves the dynamic type, which avoids slicing. This removes the need for virtual clone() methods and hand-written copy operations that std::unique_ptr-based designs require.
AI-written summary, checked against the cited sources. How summaries work