---
name: "std::assignable_from"
section: "3"
platform: "linux"
package: "gcc"
version: "16.2.1+r23+gd564253eb6c8-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/std::assignable_from"
---

# std::assignable\_from(3)

\[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 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.
