名前空間
変種
操作

std::char_traits::assign

提供: cppreference.com
< cpp‎ | string‎ | char traits

 
 
ストリングスライブラリ
NULLで終わる文字列
Original:
Null-terminated strings
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
バイト文字列
文字列をマルチバイト
ワイド文字列
クラス
Original:
Classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_string
char_traits
 
std::char_traits
メンバ関数
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.
char_traits::assign
char_traits::cmp
char_traits::move
char_traits::copy
char_traits::compare
char_traits::length
char_traits::find
char_traits::to_char_type
char_traits::to_int_type
char_traits::eq_int_type
char_traits::eof
char_traits::not_eof
 
void assign( CharT& r, CharT a );
(1)
CharT* assign( CharT* p, std::size_t count, CharT a );
(2)
キャラクタを設定します.
Original:
Assigns a character.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
文字ar文字に割り当て.
Original:
Assigns character a to character r.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
aが指す文字シーケンス内count文字の各文字に文字pを割り当て.
Original:
Assigns character a to each character in count characters in the character sequence pointed to by p.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目次

[編集] パラメータ

a -
文字は、値を代入する
Original:
character value to assign
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
r -
に割り当てる文字
Original:
character to assign to
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
p -
に割り当てる文字シーケンスへのポインタ
Original:
pointer to a character sequence to assign to
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
count -
文字列の長さ
Original:
the length of the character sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 値を返します

1)
(なし)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2) p

[編集] 例外

1)
noexcept specification:  
noexcept
  (C + + 11以来)
2)
(なし)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 複雑

1)
定数.
Original:
Constant.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
countのリニア
Original:
Linear in count
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.