Add move_if_optional utility function
This function allows writing generic code that accepts both pointers and optionals but takes ownership of the managed value to avoid unnecessary copies.
Showing
Please register or sign in to comment