The PImpl idiom and the C++26 std::indirect type
7 points by raymii
7 points by raymii
Never null: it always holds a value, except in the moved-from state (but features a member function called valueless_after_move() that lets you check the state).
Oh, C++
the move constructor not being destructive is so obnoxious, but also ends up being necessary given the other locked in semantics :-/