Namespaces
Variants
Actions

std::indirect<T, Allocator>::valueless_after_move

From cppreference.com
< cpp‎ | memory‎ | indirect
 
 
Memory management library
(exposition only*)
Allocators
Uninitialized memory algorithms
Constrained uninitialized memory algorithms
Memory resources
Uninitialized storage (until C++20)
(until C++20*)
(until C++20*)

Garbage collector support (until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
 
 
constexpr bool valueless_after_move() const noexcept;
(since C++26)

Checks whether *this is valueless.

[edit] Return value

true if *this is valueless, otherwise false.

[edit] Example