std::assignable_from(3cxx)
π
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 π
π¦ where this page comes from
- ubuntu resolute: libstdc++-12-doc 12.5.0-9ubuntu1
- ubuntu resolute: libstdc++-13-doc 13.4.0-10ubuntu1
- ubuntu resolute: libstdc++-16-doc 16-20260322-1ubuntu1
- ubuntu stonking: libstdc++-12-doc 12.5.0-9ubuntu1
- ubuntu stonking: libstdc++-13-doc 13.5.0-1ubuntu1
- ubuntu stonking: libstdc++-16-doc 16.2.0-3ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms