[#BloombergLP-bdlar-AnyCastUtil-toAnyConstRef-081] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::xref:BloombergLP/bdlar/AnyCastUtil.adoc[AnyCastUtil]::toAnyConstRef :relfileprefix: ../../../ :mrdocs: Cast the specified `ref` to `AnyConstRef`. == Synopsis Declared in `<bdlar_anycastutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdlar/AnyConstRef.adoc[AnyConstRef] toAnyConstRef(xref:BloombergLP/bdlar/NullableValueConstRef.adoc[NullableValueConstRef] const& ref); ---- == Return Value an `AnyConstRef` for the nullable value referred to by `ref` == Parameters [cols="1,4"] |=== | Name| Description | *ref* | nullable‐value const reference to wrap as `AnyConstRef` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#