Add move_if_optional utility function
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.

DavadDi/actor-framework,actor-framework/actor-framework,actor-framework/actor-framework,DavadDi/actor-framework,DavadDi/actor-framework,actor-framework/actor-framework,DavadDi/actor-framework,actor-framework/actor-framework