BloombergLP::bdlar::AnyCastUtil::toDynamicTypeRef

Cast the specified any to DynamicTypeRef.

Synopsis

Declared in <bdlar_anycastutil.h>

static
DynamicTypeRef
toDynamicTypeRef(AnyRef const& any);

Description

The behaviour is undefined unless any.typeCategory() == bdlat_TypeCategory::e_DYNAMIC_CATEGORY.

Return Value

a DynamicTypeRef for the object referred to by any

Parameters

NameDescription
anyany reference to cast