[PATCH] D132319: [ADT] Replace `void_t` equivalent with `std::void_t`
Joe Loser via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 21 09:38:15 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG99694a5d1df4: [ADT] Replace `void_t` equivalent with `std::void_t` (authored by jloser).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132319/new/
https://reviews.llvm.org/D132319
Files:
llvm/include/llvm/ADT/STLExtras.h
Index: llvm/include/llvm/ADT/STLExtras.h
===================================================================
--- llvm/include/llvm/ADT/STLExtras.h
+++ llvm/include/llvm/ADT/STLExtras.h
@@ -77,12 +77,11 @@
};
namespace detail {
-template <typename...> using void_t = void;
template <class, template <class...> class Op, class... Args> struct detector {
using value_t = std::false_type;
};
template <template <class...> class Op, class... Args>
-struct detector<void_t<Op<Args...>>, Op, Args...> {
+struct detector<std::void_t<Op<Args...>>, Op, Args...> {
using value_t = std::true_type;
};
} // end namespace detail
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132319.454321.patch
Type: text/x-patch
Size: 630 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220821/2f0ee58b/attachment.bin>
More information about the llvm-commits
mailing list