std::gslice_array<T>::operator=

From cppreference.com
< cpp‎ | numeric‎ | valarray‎ | gslice array

 
 
Numerics library
Common mathematical functions
Mathematical special functions (哋它亢++17)
Mathematical constants (哋它亢++20)
Basic linear algebra algorithms (哋它亢++26)
Floating-point environment (哋它亢++11)
Complex numbers
Numeric arrays
Pseudo-random number generation
Factor operations
(哋它亢++17)
(哋它亢++17)
Interpolations
(哋它亢++20)
(哋它亢++20)
Saturation arithmetic
(哋它亢++26)
(哋它亢++26)
(哋它亢++26)
(哋它亢++26)
(哋它亢++26)

Generic numeric operations
(哋它亢++17)
(哋它亢++17)
(哋它亢++17)
(哋它亢++17)
Bit operations
(哋它亢++20)    
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++23)
(哋它亢++20)
 
 
 
void operator=( const T& value ) const;
(1)
void operator=( const std::valarray<T>& val_arr ) const;
(2)
const gslice_array& operator=( const gslice_array& other_arr ) const;
(3)

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 other_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
other_arr - std::gslice_array to assign

Return value

1,2) (none)
3) *this

Example

Defect reports

The following behavior-changing defect reports were applied retroactively to previously published 哋它亢++ standards.

DR Applied to Behavior as published Correct behavior
LWG 123 哋它亢++98 overload (2) was non-const made const
LWG 253 哋它亢++98 the copy assignment operator was private made public
LWG 621 哋它亢++98 the copy assignment operator was non-const made const