The Wayback Machine - https://web.archive.org/web/20171101141906/http://ja.cppreference.com:80/w/cpp/string/basic_string/to_wstring
名前空間
変種
操作

std::to_wstring

提供: cppreference.com
< cpp‎ | string‎ | basic string
 
 
 
std::basic_string
メンバ関数
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_string::basic_string
basic_string::operator=
basic_string::assign
basic_string::get_allocator
要素アクセスの循環参照を解除するために使用されている
Original:
Element access
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_string::at
basic_string::operator[]
basic_string::front(C++11)
basic_string::back(C++11)
basic_string::data
basic_string::c_str
イテレータ
Original:
Iterators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_string::begin
basic_string::cbegin

(C++11)
basic_string::end
basic_string::cend

(C++11)
basic_string::rbegin
basic_string::crbegin

(C++11)
basic_string::rend
basic_string::crend

(C++11)
容量
Original:
Capacity
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_string::empty
basic_string::size
basic_string::length
basic_string::max_size
basic_string::reserve
basic_string::capacity
basic_string::shrink_to_fit(C++11)
操作
Original:
Operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_string::clear
basic_string::insert
basic_string::erase
basic_string::push_back
basic_string::pop_back(C++11)
basic_string::append
basic_string::operator+=
basic_string::compare
basic_string::replace
basic_string::substr
basic_string::copy
basic_string::resize
basic_string::swap
検索
Original:
Search
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_string::find
basic_string::rfind
basic_string::find_first_of
basic_string::find_first_not_of
basic_string::find_last_of
basic_string::find_last_not_of
定数
Original:
Constants
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_string::npos
非メンバ関数
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
operator+
operator==
operator!=
operator<
operator>
operator<=
operator>=
swap(std::basic_string)
operator<<
operator>>
getline
stoi
stol
stoll
(C++11)
(C++11)
(C++11)
stoul
stoull
(C++11)
(C++11)
stof
stod
stold
(C++11)
(C++11)
(C++11)
to_string(C++11)
to_wstring(C++11)
ヘルパークラス
Original:
Helper classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
hash<std::string>
hash<std::wstring>
hash<std::u32string>
hash<std::u16string>
(C++11)
 
Defined in header <string>
std::wstring to_wstring(int value );
(1) (C++11およびそれ以降)
std::wstring to_wstring(long value );
(2) (C++11およびそれ以降)
std::wstring to_wstring(longlong value );
(3) (C++11およびそれ以降)
std::wstring to_wstring(unsigned value );
(4) (C++11およびそれ以降)
std::wstring to_wstring(unsignedlong value );
(5) (C++11およびそれ以降)
std::wstring to_wstring(unsignedlonglong value );
(6) (C++11およびそれ以降)
std::wstring to_wstring(float value );
(7) (C++11およびそれ以降)
std::wstring to_wstring(double value );
(8) (C++11およびそれ以降)
std::wstring to_wstring(longdouble value );
(9) (C++11およびそれ以降)
1) 符号付き10進整数を、十分大きなbufに対してstd::swprintf(buf, sz, L"%d", value)が生成するのと同じワイド文字列に変換します。
2) 符号付き10進整数を、十分大きなbufに対してstd::swprintf(buf, sz, L"%ld", value)が生成するのと同じワイド文字列に変換します。
3) 符号付き10進整数を、十分大きなbufに対してstd::swprintf(buf, sz, L"%lld", value)が生成するのと同じワイド文字列に変換します。
4) 符号なし10進整数を、十分大きなbufに対してstd::swprintf(buf, sz, L"%u", value)が生成するのと同じワイド文字列に変換します。
5) 符号なし10進整数を、十分大きなbufに対してstd::swprintf(buf, sz, L"%lu", value)が生成するのと同じワイド文字列に変換します。
6) 符号なし10進整数を、十分大きなbufに対してstd::swprintf(buf, sz, L"%llu", value)が生成するのと同じワイド文字列に変換します。
7,8) 浮動小数点値を、十分大きなbufに対してstd::swprintf(buf, sz, L"%f", value)が生成するのと同じワイド文字列に変換します。
9) 浮動小数点値を、十分大きなbufに対してstd::swprintf(buf, sz, L"%Lf", value)が生成するのと同じワイド文字列に変換します。

目次

[編集]パラメータ

value - 変換する数値

[編集]戻り値

変換された値を保持するワイド文字列

[編集]

double f =23.43;std::wstring f_str = std::to_wstring(f);


[編集]参照

(C++11)
整数または浮動小数点数をstringに変換します
(関数)[edit]
close