BloombergLP::bdlb::GuidUtil::guidFromString

Parse guidString as a GUID and load the value into result.

Synopsis

Declared in <bdlb_guidutil.h>

static
int
guidFromString(
    Guid* result,
    std::string_view const& guidString);

Description

Parse the specified guidString (in {GUID String Format}) and load its value into the specified result. Return 0 if result successfully loaded, and a non-zero value otherwise.

Return Value

0 if result was successfully loaded, and a non-zero value otherwise

Parameters

NameDescription
resultGUID object to populate
guidStringstring in {GUID String Format} to parse