BloombergLP::bdlar::AnyCastUtil::toArrayRef

Cast the specified any to ArrayRef.

Synopsis

Declared in <bdlar_anycastutil.h>

static
ArrayRef
toArrayRef(AnyRef const& any);

Description

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

Return Value

an ArrayRef for the object referred to by any

Parameters

NameDescription
anyany reference to cast