std::basic_string::operator=
提供: cppreference.com
< cpp | string | basic string
![]() | このページは、Google 翻訳を使って英語版から機械翻訳されました。 翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
basic_string& operator=(const basic_string& str ); | (1) | |
basic_string& operator=( basic_string&& str ); | (2) | (C++11およびそれ以降) |
basic_string& operator=(const CharT* s ); | (3) | |
basic_string& operator=( CharT ch ); | (4) | |
basic_string& operator=(std::initializer_list<CharT> ilist ); | (5) | (C++11およびそれ以降) |
文字列の内容を置き換え.
1) Original:
Replaces the contents of the string.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
str
のコピーで内容を置き換えますOriginal:
Replaces the contents with a copy of
str
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
ムーブセマンティクスを使用して
3) str
のものと内容を置き換えます。 str
操作後に未定義の状態になってい.Original:
Replaces the contents with those of
str
using move semantics. str
is in undefined state after the operation.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
s
が指すヌルで終わる文字列のものと内容を置き換え. Original:
Replaces the contents with those of null-terminated character string pointed to by
s
. The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
文字
8) ch
で内容を置換しますOriginal:
Replaces the contents with character
ch
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
初期化子リストのものと内容を置き換え
ilist
.Original:
Replaces the contents with those of the initializer list
ilist
.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
目次 |
[編集]パラメータ
ch | - | との文字列の文字を初期化する値 Original: value to initialize characters of the string with The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
str | - | 文字列では文字列を初期化するためのソースとして使用される Original: string to be used as source to initialize the string with The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
s | - | を使って文字列を初期化するためにソースとしてヌルtermanated文字列 to利用へのポインタ Original: pointer to a null-termanated character string to use as source to initialize the string with The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
init | - | を使って文字列を初期化する初期化子リスト Original: initializer list to initialize the string with The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[編集]値を返します
*this
[編集]複雑性
1)str
の大きさに比例Original:
linear in size of
str
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
定数。
3) alloc
が与えられ、alloc != other.get_allocator()、リニアされている場合.Original:
constant. If
alloc
is given and alloc != other.get_allocator(), then linear.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
s
の大きさに比例Original:
linear in size of
s
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
定数.
5) Original:
constant.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
init
の大きさに比例Original:
linear in size of
init
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[編集]例
This section is incomplete Reason: no example |
[編集]参照
basic_string を構築します Original: constructs a basic_string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
文字列に文字を割り当てます Original: assign characters to a string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) |