[#BloombergLP-bdlar-AnyCastUtil-toAnyConstRef-0a] = 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/SimpleTypeConstRef.adoc[SimpleTypeConstRef] const& ref); ---- == Return Value an `AnyConstRef` for the simple type referred to by `ref` == Parameters [cols="1,4"] |=== | Name| Description | *ref* | simple‐type const reference to wrap as `AnyConstRef` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#