◐ Shell
clean mode source ↗

std::char_traits::assign - cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

void assign( CharT& r, CharT a );

(1)

CharT* assign( CharT* p, std::size_t count, CharT a );

(2)

Atribui um caráter.

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)

Atribui a personagem para personagem 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.

2)

Atribui a personagem para cada personagem em caracteres count na seqüência de caracteres apontada por 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.

Parâmetros

a -

caráter valor a atribuir

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 -

personagem para atribuir

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 -

ponteiro para uma seqüência de caracteres para atribuir

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 -

o comprimento da sequência de caracteres

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.

Valor de retorno

1)

(Nenhum)

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

Exceções

2)

(Nenhum)

Original:

(none)

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Complexidade

1)

Constante.

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)

Linear em 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.