std::movable(3)
π std::movable(3) π
okay so bestie, this is page std::movable(3) from the C++ Standard Libary manual, and we're doing concepts today. no cap. π
π NAME π
std::movable - std::movable
that's the name. iconic, honestly. β¨
π Synopsis π
Defined in header <concepts> β yes bestie, that's where it lives. π¦
Defined in header <concepts>
template< class T >
concept movable =
std::is_object_v<T> && (since C++20)
std::move_constructible<T> &&
std::assignable_from<T&, T> &&
std::swappable<T>;
so what is this actually saying? The concept movable<T> specifies that T is an object type that can be moved β that is, it can be move constructed, it can be move assigned, and lvalues of type T can be swapped. literally the whole "can I move this around?" vibe check. ππ₯
π See also π
copyableβ specifies that an object of a type can be copied, moved, and swapped.(C++20)(concept)π«Ά
mwah π source: http://cppreference.com, version and date: 2024.06.10, page: std::movable(3). that's the footer tea, bestie β bye! πΈπ¦
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms