This struct provides a namespace for functions that convert between AnyRef/`AnyConstRef` and the concrete type‐category reference types.

Synopsis

Declared in <bdlar_anycastutil.h>

struct AnyCastUtil;

Static Member Functions

Name

Description

toAnyConstRef

Cast the specified ref to AnyConstRef.

toAnyRef

Cast the specified ref to AnyRef.

toArrayConstRef

Cast the specified any to ArrayConstRef. The behaviour is undefined unless any.typeCategory() == bdlat_TypeCategory::e_ARRAY_CATEGORY.

toArrayRef

Cast the specified any to ArrayRef. The behaviour is undefined unless any.typeCategory() == bdlat_TypeCategory::e_ARRAY_CATEGORY.

toChoiceConstRef

Cast the specified any to ChoiceConstRef. The behaviour is undefined unless any.typeCategory() == bdlat_TypeCategory::e_CHOICE_CATEGORY.

toChoiceRef

Cast the specified any to ChoiceRef. The behaviour is undefined unless any.typeCategory() == bdlat_TypeCategory::e_CUSTOMIZED_TYPE_CATEGORY.

toCustomizedTypeConstRef

Cast the specified any to CustomizedTypeConstRef. The behaviour is undefined unless any.typeCategory() == bdlat_TypeCategory::e_CUSTOMIZED_TYPE_CATEGORY.

toCustomizedTypeRef

Cast the specified any to CustomizedTypeRef. The behaviour is undefined unless any.typeCategory() == bdlat_TypeCategory::e_CHOICE_CATEGORY.

toDynamicTypeConstRef

Cast the specified any to DynamicTypeConstRef. The behaviour is undefined unless any.typeCategory() == bdlat_TypeCategory::e_DYNAMIC_CATEGORY.

toDynamicTypeRef

Cast the specified any to DynamicTypeRef. The behaviour is undefined unless any.typeCategory() == bdlat_TypeCategory::e_DYNAMIC_CATEGORY.

toEnumConstRef

Cast the specified any to EnumConstRef. The behaviour is undefined unless any.typeCategory() == bdlat_TypeCategory::e_ENUMERATION_CATEGORY.

toEnumRef

Cast the specified any to EnumRef. The behaviour is undefined unless any.typeCategory() == bdlat_TypeCategory::e_ENUMERATION_CATEGORY.

toNullableValueConstRef

Cast the specified any to NullableValueConstRef. The behaviour is undefined unless any.typeCategory()==bdlat_TypeCategory::e_NULLABLE_VALUE_CATEGORY.

toNullableValueRef

Cast the specified any to NullableValueRef. The behaviour is undefined unless any.typeCategory()==bdlat_TypeCategory::e_NULLABLE_VALUE_CATEGORY.

toSequenceConstRef

Cast the specified any to SequenceConstRef. The behaviour is undefined unless any.typeCategory() == bdlat_TypeCategory::e_SEQUENCE_CATEGORY.

toSequenceRef

Cast the specified any to SequenceRef. The behaviour is undefined unless any.typeCategory() == bdlat_TypeCategory::e_SEQUENCE_CATEGORY.

toSimpleTypeConstRef

Cast the specified any to SimpleTypeConstRef. The behaviour is undefined unless any.typeCategory() == bdlat_TypeCategory::e_SIMPLE_CATEGORY.

toSimpleTypeRef

Cast the specified any to SimpleTypeRef. The behaviour is undefined unless any.typeCategory() == bdlat_TypeCategory::e_SIMPLE_CATEGORY.

Created with MrDocs