cpp/string/char traits/assign: Unterschied zwischen den Versionen
Aus cppreference.com
< cpp | string | char traits
P12bot (Diskussion | Beiträge) K (r2.7.3) (Bot: Ergänze: en, es, fr, it, ja, pt, ru, zh) |
P12bot (Diskussion | Beiträge) K (Use {{lc}}. Update links. Various fixes.) |
||
Zeile 2: | Zeile 2: | ||
{{cpp/string/char_traits/title|assign}} | {{cpp/string/char_traits/title|assign}} | ||
{{cpp/string/char_traits/navbar}} | {{cpp/string/char_traits/navbar}} | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| num=1 | |
void assign( CharT& r, CharT a ); | void assign( CharT& r, CharT a ); | ||
}} | }} | ||
− | {{ | + | {{| num=2 | |
CharT* assign( CharT* p, std::size_t count, CharT a ); | CharT* assign( CharT* p, std::size_t count, CharT a ); | ||
}} | }} | ||
− | {{ | + | {{end}} |
{{tr|Weist ein Zeichen .|Assigns a character.}} | {{tr|Weist ein Zeichen .|Assigns a character.}} | ||
Zeile 17: | Zeile 17: | ||
===Parameter=== | ===Parameter=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| a |{{tr| Charakter Wert zuweisen| character value to assign}}}} |
− | {{ | + | {{| r |{{tr| Zeichen zuordnen| character to assign to}}}} |
− | {{ | + | {{| p |{{tr| Zeiger auf eine Zeichensequenz zu zuordnen| pointer to a character sequence to assign to}}}} |
− | {{ | + | {{| count |{{tr| die Länge der Zeichenfolge| the length of the character sequence}}}} |
− | {{ | + | {{end}} |
===Rückgabewert=== | ===Rückgabewert=== |
Aktuelle Version vom 1. Juli 2013, 20:49 Uhr
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
void assign( CharT& r, CharT a ); |
(1) | |
CharT* assign( CharT* p, std::size_t count, CharT a ); |
(2) | |
Weist ein Zeichen .
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.
You can help to correct and verify the translation. Click here for instructions.
1)
Weist Charakter
a
den Charakter r
.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.
You can help to correct and verify the translation. Click here for instructions.
2)
Weist Charakter
a
jedem Zeichen count
Zeichen in der Zeichensequenz, auf den durch 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.
You can help to correct and verify the translation. Click here for instructions.
Inhaltsverzeichnis |
[Bearbeiten] Parameter
a | - | Charakter Wert zuweisen
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 | - | Zeichen zuordnen
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 | - | Zeiger auf eine Zeichensequenz zu zuordnen
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 | - | die Länge der Zeichenfolge
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. |
[Bearbeiten] Rückgabewert
1)
(None)
Original:
(none)
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.
2)
p
[Bearbeiten] Ausnahmen
1)
2)
(None)
Original:
(none)
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.
[Bearbeiten] Komplexität
1)
Constant .
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.
2)
Linear in
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.
You can help to correct and verify the translation. Click here for instructions.