std::experi...es::Movable(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’… NAME πŸ’…

std::experimental::ranges::Movable - std::experimental::ranges::Movable β€” bestie, that's literally the name. This is the std::experimental::ranges::Movable(3) page from the C++ Standard Libary, and yes we're folding that manual-name energy in right here. πŸ’–


✨ Synopsis ✨

okay so here's the whole vibe, no cap:

Defined in header <experimental/ranges/concepts>
template< class T >

concept bool Movable =
    std::is_object<T>::value &&                   (ranges TS)
    MoveConstructible<T> &&
    Assignable<T&, T> &&

    Swappable<T>;

The concept Movable<T> specifies that T is an object type that can be moved β€” that is, it can be move constructed, move assigned, and lvalues of type T can be swapped. πŸ¦‹ slay.

Also, there need not be any subsumption relationship between Movable<T> and std::is_object<T>::value β€” that's the rule, no cap. πŸ’…


πŸ‘€ See also πŸ‘€

  • Copyable β€” specifies that an object of a type can be copied, moved, and swapped (concept). πŸŽ€

source/version bestie: http://cppreference.com, date: 2024.06.10 β€” mwah, that's a wrap πŸ’‹

πŸ“¦ where this page comes from