Espacios de nombres
Variantes
Acciones

std::basic_string::resize

De cppreference.com
< cpp‎ | string‎ | basic string
 
 
Strings biblioteca
Terminadas en nulo
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.
Cadenas de bytes
Multibyte cuerdas
Cadenas anchas
Clases
Original:
Classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
std::basic_string
Las funciones miembro
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.
Elemento acceso
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.
Los iteradores
Original:
Iterators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Capacidad
Original:
Capacity
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Operaciones
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::resize
Buscar
Original:
Search
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Constantes
Original:
Constants
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Terceros funciones
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.
(C++11)(C++11)(C++11)
(C++11)(C++11)
(C++11)(C++11)(C++11)
(C++11)
(C++11)
Clases de ayuda
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.
 
void resize( size_type count );
(1)
void resize( size_type count, CharT ch );
(2)
Cambia el tamaño de la cadena que contienen caracteres count .
Original:
Resizes the string to contain count characters.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si el tamaño actual es menor que count, caracteres adicionales se añaden .
Original:
If the current size is less than count, additional characters are appended.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si el tamaño actual es mayor que count, la cadena se reduce a sus elementos count primera .
Original:
If the current size is greater than count, the string is reduced to its first count elements.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La primera versión inicializa nuevos caracteres a CharT(), la segunda versión inicializa nuevos caracteres a ch .
Original:
The first version initializes new characters to CharT(), the second version initializes new characters to ch.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Contenido

[editar] Parámetros

count -
nuevo tamaño de la cadena
Original:
new size 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.
ch -
carácter para inicializar los nuevos personajes con
Original:
character to initialize the new characters with
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Valor de retorno

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

[editar] Complejidad

lineal en el tamaño de la cadena
Original:
linear in the size 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.

[editar] Ver también

returns the number of characters
(función miembro público) [editar]