BloombergLP::bdld::DatumMaker::ref

Return a bdld::Datum that references, but does not own, string.

Synopsis

Declared in <bdld_datummaker.h>

bdld::Datum
ref(bslstl::StringRef const& string) const;

Description

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

Return Value

a Datum that references, but does not own, string

Parameters

NameDescription
stringstring to reference without taking ownership