[libc++] [C++2b] [P1682] Add to_underlying.
* https://wg21.link/P1682
Reviewed By: ldionne, Mordante, #libc
Differential Revision: https://reviews.llvm.org/D97365
GitOrigin-RevId: 43e421417378bab378eccdf88a66a0a46304fa13
diff --git a/include/version b/include/version
index 49648a0..becbfa5 100644
--- a/include/version
+++ b/include/version
@@ -150,6 +150,7 @@
__cpp_lib_to_address 201711L <memory>
__cpp_lib_to_array 201907L <array>
__cpp_lib_to_chars 201611L <utility>
+__cpp_lib_to_underlying 202102L <utility>
__cpp_lib_transformation_trait_aliases 201304L <type_traits>
__cpp_lib_transparent_operators 201510L <functional> <memory>
201210L // C++14
@@ -365,6 +366,7 @@
// # define __cpp_lib_stacktrace 202011L
// # define __cpp_lib_stdatomic_h 202011L
# define __cpp_lib_string_contains 202011L
+# define __cpp_lib_to_underlying 202102L
#endif
// clang-format on