std::to_wstring

From Cppreference

Jump to: navigation, search
Defined in header <string>

std::wstring to_wstring( int value );
(1) (C++11 feature)
std::wstring to_wstring( long value );
(2) (C++11 feature)
std::wstring to_wstring( long long value );
(3) (C++11 feature)
std::wstring to_wstring( unsigned value );
(4) (C++11 feature)
std::wstring to_wstring( unsigned long value );
(5) (C++11 feature)
std::wstring to_wstring( unsigned long long value );
(6) (C++11 feature)
std::wstring to_wstring( float value );
(7) (C++11 feature)
std::wstring to_wstring( double value );
(8) (C++11 feature)
std::wstring to_wstring( long double value );
(9) (C++11 feature)

1-3) Converts a signed decimal integer to a wide string in the style [-]dddd. At least one digit is written.

4-6) Converts a unsigned decimal integer to a wide string in the style dddd. At least one digit is written.

7-9) Converts a floating point value to a wide string in the style ddd.ddd. At least 6 digits are written after the decimal point character.

Contents

[edit] Parameters

value - a numeric value to convert

[edit] Return value

a wide string holding the converted value

[edit] Example

[edit] See also

to_string (C++11)
converts an integral or floating point value to string
(function)