BloombergLP::bdlar::AnyCastUtil::toAnyRef

Return an AnyRef referring to the same choice as ref.

Synopsis

Declared in <bdlar_anycastutil.h>

static
AnyRef
toAnyRef(ChoiceRef const& ref);

Description

Cast the specified ref to AnyRef.

Return Value

an AnyRef for the choice referred to by ref

Parameters

NameDescription
refchoice reference to wrap as AnyRef