Namespaces
Variants
Views
Actions

std::to_wstring

From cppreference.com
 
 
 
std::basic_string
 
Defined in header <string>
std::wstring to_wstring( int value );
(1) (since C++11)
std::wstring to_wstring( long value );
(2) (since C++11)
std::wstring to_wstring( long long value );
(3) (since C++11)
std::wstring to_wstring( unsigned value );
(4) (since C++11)
std::wstring to_wstring( unsigned long value );
(5) (since C++11)
std::wstring to_wstring( unsigned long long value );
(6) (since C++11)
std::wstring to_wstring( float value );
(7) (since C++11)
std::wstring to_wstring( double value );
(8) (since C++11)
std::wstring to_wstring( long double value );
(9) (since C++11)

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

(C++11)
converts an integral or floating point value to string
(function) [edit]