std::gslice...::operator=(3)
π
std::gslice...::operator=(3) π
okay bestie, this page is from the C++ Standard Libary (yes, that's literally how the header spells it, and we respect the lore). It's the manual page for std::gslice_array::operator=, and it's all about assigning values to the referred elements. Very "you get a value, you get a value" energy. π«Ά
β¨ NAME β¨
std::gslice_array::operator= - std::gslice_array::operator=
That's the name, bestie β twice, because that's what the page says. No notes. π
πΈ Synopsis πΈ
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. Iconic behavior, honestly. β¨
- Assigns
valueto all of the elements. - Assigns the elements of
val_arrto the referred to elements of*this. - Assigns the selected elements from
other_arrto the referred to elements of*this.
π Parameters π
valueβ a value to assign to all of the referred elementsval_arrβstd::valarrayto assignother_arrβstd::gslice_arrayto assign
π Return value π
- 1,2) β
(none) - 3) β
*this
π¦ Example π¦
This section is incomplete.
Reason: no example.
Not me crying over a missing example π but that's what it says.
π₯ Defect reports π₯
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
- LWG 123 β applied to C++98. Behavior as published: overload (2) was non-const. Correct behavior: made const.
- LWG 253 β applied to C++98. Behavior as published: the copy assignment operator was private. Correct behavior: made public.
- LWG 621 β applied to C++98. Behavior as published: the copy assignment operator was non-const. Correct behavior: made const.
π Category π
* Todo no example
That's the category tag, bestie β not me adding a little todo. The page says what it says. π
Mwah π this page is served fresh from http://cppreference.com, dated 2024.06.10, and it's the std::gslice...::operator=(3) page. Go assign those referred elements, bestie! π«Άβ¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms