cpp/utility/any/operator=

Assigns contents to the contained value.

@1@ Assigns by copying the state of, as if by. @2@ Assigns by moving the state of, as if by. is left in a valid but unspecified state after the assignment. @3@ Assigns the type and value of, as if by.

Exceptions
@1,3@ Throws std or any exception thrown by the constructor of the contained type. If an exception is thrown, there are no effects (strong exception guarantee).