Load the wide‐string version of viewIn into result.

Synopsis

Declared in <bdlt_formattestutil.h>

static
void
widen(
    bsl::wstring* result,
    std::string_view const& viewIn);

Description

Load the wstring version of the specified char‐based string view viewIn into the specified result. The behavior is undefined unless all of the char values in viewIn are ascii.

Parameters

Name

Description

result

loaded with the wide‐string conversion of viewIn

viewIn

narrow string view to convert

Created with MrDocs