[#BloombergLP-bdld-DatumMaker-ref]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdld.adoc[bdld]::xref:BloombergLP/bdld/DatumMaker.adoc[DatumMaker]::ref
:relfileprefix: ../../../
:mrdocs:

Return a `bdld&colon;&colon;Datum` object that references, but does not own the specified `string`, possibly using the allocator of this object to obtain memory&period; Note that this can be used to refer to string literals&period; See `bdld&colon;&colon;Datum&colon;&colon;createStringRef()`&period;

== Synopsis

Declared in `&lt;bdld&lowbar;datummaker&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdld/Datum.adoc[bdld::Datum]
ref(xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] const& string) const;
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
