std::is_implicit_lifetime(3)
π NAME π
std::is_implicit_lifetime β std::is_implicit_lifetime.
okay so bestie, welcome to the std::is_implicit_lifetime page from the C++ Standard Libary manual β yes, that manual name is literally right there at the top in the original header, and we're folding it in here instead of copying the whole header line, periodt. π
β¨ Synopsis β¨
Here's the whole shape of it, no cap:
Defined in header <type_traits>
template< class T > (since C++23)
struct is_implicit_lifetime;
std::is_implicit_lifetime is a UnaryTypeTrait.
If T is an implicit-lifetime type, it provides the member constant value equal to true. For any other type, value is false.
The behavior is undefined ifTis an incomplete type other than an array type or (possibly cv-qualified)void. Like, that's the scary one β don't do it, fr fr. π
If the program adds specializations for std::is_implicit_lifetime or std::is_implicit_lifetime_v, the behavior is undefined.
π§© Template parameters
Tβ a type to check
π§ Helper variable template
template< class T >
inline constexpr bool is_implicit_lifetime_v =
(since C++23)
is_implicit_lifetime<T>::value;
𧬠Inherited from std::integral_constant
π Member constants
valueβtrueifTis an implicit-lifetime type,falseotherwise.[static](public static member constant)
π Member functions
operator boolβ converts the object tobool, returnsvalue(public member function)operator()β returnsvalue(C++14) (public member function)
π¦ Member types
value_typeβbooltypeβstd::integral_constant<bool, value>
π Notes β¨
- Feature-test macro:
__cpp_lib_is_implicit_lifetimeβ value202302L(C++23), featurestd::is_implicit_lifetime
π Example π
This section is incomplete. Reason: example.
That's literally it, bestie β no example yet, just the reason. π
π See also π
is_scalarβ checks if a type is a scalar type (C++11) (class template)is_arrayβ checks if a type is an array type (C++11) (class template)is_aggregateβ checks if a type is an aggregate type (C++17) (class template)start_lifetime_asβ implicitly creates objects in given storage with the object representation reused (C++23) (function template)start_lifetime_as_arrayβ implicitly creates objects in given storage with the object representation reused (C++23) (function template)
π·οΈ Category π·οΈ
- Todo with reason
okay that's the whole page, bestie π
big shoutout to http://cppreference.com, the 2024.06.10 version, and the std::is_implicit_lifetime(3) page itself β mwah πβ¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms