A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/language/../error/error_code/../../concepts/movable.html below:

std::movable - cppreference.com

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)  

move_constructible

(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 movable =
    std::is_object_v<T> &&
    std::move_constructible<T> &&
    std::assignable_from<T&, T> &&

    std::swappable<T>;
(since C++20)

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).

[edit] References
[edit] See also copyable

(C++20)

specifies that an object of a type can be copied, moved, and swapped
(concept) [edit]

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