---
name: "std::assignable_from"
section: "3cxx"
platform: "linux"
package: "libstdc++-12-doc"
version: "12.4.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/std::assignable_from/3cxx"
---

# std::assignable\_from(3cxx)

\[concept.assignable\], concept assignable\_from

## NAME

std::assignable\_from - \[concept.assignable\], concept assignable\_from

## SYNOPSIS

`#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

## Author

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