المتغيرات
فضاءات التسمية
أفعال

std::{{{1}}}::operator=

من cppreference.com
void operator=( const T& value ) const;
(1)
void operator=( const std::valarray<T>& val_arr ) const;
(2)
const {{{1}}}& operator=( const {{{1}}}& sl_arr) const;
(3) (since C++11)

Assigns values to all referred elements.

1) Assigns ‎value‎ to all of the elements.
2) Assigns the elements of ‎val_arr‎ to the referred to elements of *this.
3) Assigns the selected elements from ‎sl_arr‎ to the referred to elements of *this.

محتويات

[تعديل] Parameters

value - a value to assign to all of the referred elements
val_arr - std::valarray to assign
sl_arr - std::{{{1}}} to assign

[تعديل] Return value

1-2) (none)
3) *this

[تعديل] Exceptions

(none)

[تعديل] Example