Convert a numeric value to a wstring.

Synopsis

Declared in <bslstl_string.h>

wstring
to_wstring(long long value);

Description

Constructs a string with contents equal to the specified value. The contents of the string will be the same as what `std::swprintf(buf, L"%lld", value)` would produce with a sufficiently large buffer.

Return Value

wstring representation of value

Parameters

Name

Description

value

numeric value to convert

Created with MrDocs