BloombergLP::bdlar::AnyCastUtil::toSimpleTypeConstRef

Cast the specified any to SimpleTypeConstRef.

Synopsis

Declared in <bdlar_anycastutil.h>

static
SimpleTypeConstRef
toSimpleTypeConstRef(AnyConstRef const& any);

Description

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

Return Value

a SimpleTypeConstRef for the object referred to by any

Parameters

NameDescription
anyconst any reference to cast