Return a datum referring to the string described by value.
Declared in <bdld_datum.h>
static
Datum
createStringRef(
bslstl::StringRef const& value,
AllocatorType const& allocator);
Return, by value, a datum having the specified StringRef value, using the specified allocator to supply memory (if needed). The behavior is undefined unless value.length() <= UINT_MAX. Note that string is not copied, and is not freed if Datum::destroy is called on the returned object.
a datum referring to the string described by value
| Name | Description |
|---|---|
| value | string reference to wrap |
| allocator | memory allocator to use |