microsoft / STL

MSVC's implementation of the C++ Standard Library.
Other
10.02k stars 1.47k forks source link

P2641R4 `is_within_lifetime()`: Checking If A Union Alternative Is Active #3809

Open StephanTLavavej opened 1 year ago

StephanTLavavej commented 1 year ago

WG21-P2641R4 is_within_lifetime(): Checking If A Union Alternative Is Active

Feature-test macro:

#define __cpp_lib_within_lifetime 202306L

Note: We're focused on implementing the remaining library-only features in C++23. Until that's done, we will NOT be accepting PRs for C++26 features.

StephanTLavavej commented 1 year ago

It appears that this is, by definition, powered by compiler magic. :magic_wand: