Namespaces
Variants

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

From cppreference.net
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* )
( 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 ;
(C++26부터)

* this 가 값을 가지지 않는지 확인합니다.

반환값

true 만약 * this 가 값이 없는 경우, 그렇지 않으면 false 입니다.

예제