[llvm] [STLExtras] Backport std::to_underlying from C++23 (PR #70681)

Jakub Kuderski via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 30 10:45:40 PDT 2023


================
@@ -1535,6 +1535,13 @@ constexpr decltype(auto) makeVisitor(CallableTs &&...Callables) {
   return detail::Visitor<CallableTs...>(std::forward<CallableTs>(Callables)...);
 }
 
+/// Backport of C++23 std::to_underlying.
----------------
kuhar wrote:

Can you write a one-line description of what the function actually does? This being a backport is more of a detail.

https://github.com/llvm/llvm-project/pull/70681


More information about the llvm-commits mailing list