std::assignable_from(3cxx)

std::assignable_from3cxx

[concept.assignable], concept assignable_from

Usage

#include <concepts>

Concept definition

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>;
      }

Detailed Description

[concept.assignable], concept assignable_from

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

Author

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

From libstdc++-12-doc 12.4.0-5 in Debian 13 (Trixie). Also shipped by libstdc++-13-doc. Parsed by carta from the page's man source.