On this page
std::is_implicit_lifetime
Defined in header <type_traits> |
||
---|---|---|
|
(since C++23) |
std::is_implicit_lifetime
is a UnaryTypeTrait.
If T
is an implicit-lifetime type, provides the member constant value
equal to true
. For any other type, value
is false
.
The behavior is undefined if T
is an incomplete type other than an array type or (possibly cv-qualified) void
.
The behavior of a program that adds specializations for std::is_implicit_lifetime
or std::is_implicit_lifetime_v
is undefined.
Template parameters
T | - | a type to check |
Helper variable template
|
(since C++23) |
Inherited from std::integral_constant
Member constants
value
[static]
|
true if T is an implicit-lifetime type, false otherwise (public static member constant) |
Member functions
operator bool
|
converts the object to bool, returns value (public member function) |
operator()
(C++14)
|
returns value (public member function) |
Member types
Type | Definition |
---|---|
value_type |
bool |
type |
std::integral_constant<bool, value> |
Notes
Feature-test macro | Value | Std | Feature |
---|---|---|---|
__cpp_lib_is_implicit_lifetime |
202302L | (C++23) | std::is_implicit_lifetime |
Example
See also
(C++11)
|
checks if a type is a scalar type (class template) |
(C++11)
|
checks if a type is an array type (class template) |
(C++17)
|
checks if a type is an aggregate type (class template) |
(C++23)
|
implicitly creates objects in given storage with the object representation reused (function template) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/types/is_implicit_lifetime