std::raw_st...::operator=(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

✨ NAME ✨

okay so bestie, this is the <pink>std::raw_st...::operator=(3)</pink> page from the <purple>C++ Standard Libary</purple> manual β€” yes, Libary, we're keeping the typo, it's a whole vibe πŸ’…. The name is literally std::raw_storage_iterator::operator=, and then the manual says std::raw_storage_iterator::operator= again, because why not, consistency ate πŸ’–.


πŸ¦‹ Synopsis πŸ¦‹

raw_storage_iterator& operator=( const T& el ); (1)
raw_storage_iterator& operator=( T&& el );      (2) (since C++17)

1) Constructs a value at the location the iterator points to from el.

2) Constructs a value at the location the iterator points to from std::move(el). And yes, that one is since C++17 ⭐.


🌸 Parameters 🌸

  • el β€” the value to copy or move from. That's it, that's the whole parameter list, and honestly? Iconic minimalism πŸŽ€.

πŸ‘‘ Return value πŸ‘‘

*this β€” the iterator itself comes right back to you, periodt 🫢.

πŸ“¦ where this page comes from