From cppreference.com
< cpp | concepts C++ Compiler support Freestanding and hosted Language Standard library Standard library headers Named requirements Feature test macros (C++20) Language support library Concepts library (C++20) Diagnostics library Memory management library Metaprogramming library (C++11) General utilities library Containers library Iterators library Ranges library (C++20) Algorithms library Strings library Text processing library Numerics library Date and time library Input/output library Filesystem library (C++17) Concurrency support library (C++11) Execution control library (C++26) Technical specifications Symbols index External libraries [edit] Concepts library Core language concepts same_as(C++20)
derived_from(C++20)
convertible_to(C++20)
common_reference_with(C++20)
common_with(C++20)
integral(C++20)
signed_integral(C++20)
unsigned_integral(C++20)
floating_point(C++20)
swappableswappable_with(C++20)(C++20)
destructible(C++20)
constructible_from(C++20)
default_initializable(C++20)
(C++20)
copy_constructible(C++20)
assignable_from(C++20)
Comparison concepts equality_comparableequality_comparable_with(C++20)(C++20)
totally_orderedtotally_ordered_with(C++20)(C++20)
Object concepts movable(C++20)
copyable
(C++20)
semiregular(C++20)
regular(C++20)
Callable concepts invocableregular_invocable(C++20)(C++20)
predicate(C++20)
relation(C++20)
equivalence_relation(C++20)
strict_weak_order(C++20)
Exposition-only concepts boolean-testable(C++20)
[edit]Defined in header
<concepts>
template< class T >
concept copyable =
std::copy_constructible<T> &&
std::movable<T> &&
std::assignable_from<T&, T&> &&
std::assignable_from<T&, const T&> &&
The concept copyable<T>
specifies that T
is a movable
object type that can also be copied (that is, it supports copy construction and copy assignment).
(C++20)
specifies that an object of a type can be moved and swappedRetrieved from "
https://en.cppreference.com/mwiki/index.php?title=cpp/concepts/copyable&oldid=177903"
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4