Espacios de nombres
Variantes
Acciones

std::valarray::operator=

De cppreference.com
< cpp‎ | numeric‎ | valarray
 
 
 
 
valarray<T>& operator=( const valarray<T>& other );
(1)
valarray<T>& operator=( valarray<T>&& other );
(2) (desde C++11)
valarray<T>& operator=( const T& val );
(3)
valarray<T>& operator=( const std::slice_array& );
(4)
valarray<T>& operator=( const std::gslice_array& );
(5)
valarray<T>& operator=( const std::mask_array& );
(6)
valarray<T>& operator=( const std::indirect_array& );
(7)
valarray<T>& operator=( std::initializer_list<T> il );
(8) (desde C++11)
Reemplaza el contenido de la matriz numérica .
Original:
Replaces the contents of the numeric array.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
Copiar el operador de asignación. Reemplaza el contenido con una copia de los contenidos de otra .
Original:
Copy assignment operator. Replaces the contents with a copy of the contents of other.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Mueva operador de asignación. Reemplaza el contenido con los de otras semántica mover usando (es decir, los datos en otro se mueve de otra en esta matriz numérica). other está en estado válido, pero sin especificar después .
Original:
Move assignment operator. Replaces the contents with those of other using move semantics (i.e. the data in other is moved from other into this numeric array). other is in valid, but unspecified state afterwards.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
Asigna cada valor de la matriz numérica del valor de val .
Original:
Assigns each value in the numeric array the value of val.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
8)
Asigna el contenido de il inicializador lista. Equivalente a {{{1}}} .
Original:
Assigns the contents of initializer list il. Equivalent to {{{1}}}.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Parámetros

other -
otro array numérico para asignar
Original:
another numeric array to assign
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
val -
el valor para inicializar cada elemento con
Original:
the value to initialize each element with
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
il -
lista de inicializadores asignar
Original:
initializer list to assign
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

*this

[editar] Excepciones

1)
(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.
2)
Especificación noexcept:  
noexcept
  (desde C++11)
3-8)
(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.