cpp/utility/variant/get

@1@ Index-based value accessor: If, returns a reference to the value stored in. Otherwise, throws std. The call is ill-formed if is not a valid index in the variant. @2@ Type-based value accessor: If holds the alternative, returns a reference to the value stored in. Otherwise, throws std. The call is ill-formed if is not a unique element of.

Return value
Reference to the value stored in the variant.

Exceptions
@1,2@ Throws std on errors.