std::assignable_from(3cxx)

πŸ“¦
version 16-20260322 Β· 3 versions
, in ubuntu resolute, ubuntu stonking

πŸ’… std::assignable_from β€” the 3cxx bestie edition

okay so you opened the 3cxx manual and landed on std::assignable_from?? slay, you're in the right place, pull up a chair 🫢


✨ NAME ✨

std::assignable_from β€” [concept.assignable], the concept assignable_from


🌸 SYNOPSIS 🌸

first things first, bestie, you gotta bring the header in:

#include <concepts>

πŸŽ€ Concept definition πŸŽ€

this is the whole entire vibe, copy it exactly, no cap:

template<typename _Lhs, typename _Rhs>
concept std::assignable_from =  is_lvalue_reference_v<_Lhs>
      && common_reference_with<__detail::__cref<_Lhs>, __detail::__cref<_Rhs>>
      && requires(_Lhs __lhs, _Rhs&& __rhs) {
        { __lhs = static_cast<_Rhs&&>(__rhs) } -> same_as<_Lhs>;
      }

πŸ’– DESCRIPTION πŸ’–

[concept.assignable], concept assignable_from. that's the whole description, periodt. it's giving "the source already said everything" energy πŸ’€


πŸ‘‘ AUTHOR πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code.

not me getting emotional over an autogenerated byline 😭


🌈 SEE ALSO 🌈

nothing else listed here bestie, this concept is a lone wolf, main character energy fr fr πŸ¦‹


and that's the page!! libstdc++ came through with the std::assignable_from(3cxx) moment, so thank the libstdc++ girlies and the Doxygen machine for generating it πŸ’…βœ¨ bye bestie, go assign something πŸ’–