cpp/utility/any/any cast

Performs type-safe access to the contained object.

Let be.

@1@ The program is ill-formed if is. @2@ The program is ill-formed if is. @3@ The program is ill-formed if is.

Return value
@1-2@ Returns. @3@ Returns. @4-5@ If is not a null pointer, and the  of the requested  matches that of the contents of, a pointer to the value contained by operand, otherwise a null pointer.

Exceptions
@1-3@ Throws std if the of the requested  does not match that of the contents of.