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

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

✨ NAME ✨

okay so bestie, you’re reading the std::experi...es::Copyable(3) page from the C++ Standard Libary manual πŸ’…βœ¨

std::experimental::ranges::Copyable β€” std::experimental::ranges::Copyable

🌸 Synopsis 🌸

defined in the header <experimental/ranges/concepts> πŸŽ€

          template< class T >

          concept bool Copyable =
              CopyConstructible<T> &&                       (ranges TS)
              Movable<T> &&

              Assignable<T&, const T&>;

the concept Copyable<T> says that T is a Movable object type that can also be copied β€” meaning it supports copy construction and copy assignment. periodt. πŸ’…

🧚 Notes 🧚

the intent is that Copyable<T> also requires Assignable<T&, const T> (assignment from const rvalue) and Assignable<T&, T&> (assignment from non-const lvalue) to be satisfied. no cap, that’s the note. 🫢

πŸŽ€ See also πŸŽ€

  • Movable β€” specifies that an object of a type can be moved and swapped (concept) πŸ¦‹

xoxo, bestie πŸ’– this page was sourced from http://cppreference.com and dated 2024.06.10 β€” std::experi...es::Copyable(3) out 🌈

πŸ“¦ where this page comes from