[PATCH] D159331: [ADT][NFC] Remove some redundant code
panyuntao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 31 20:08:50 PDT 2023
yuntaopan created this revision.
yuntaopan added reviewers: scott.linder, aprantl.
Herald added a project: All.
yuntaopan requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Some typetraits are defined twice, delete this part of the code.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D159331
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
@@ -1484,16 +1484,6 @@
template <int N> struct rank : rank<N - 1> {};
template <> struct rank<0> {};
-/// traits class for checking whether type T is one of any of the given
-/// types in the variadic list.
-template <typename T, typename... Ts>
-using is_one_of = std::disjunction<std::is_same<T, Ts>...>;
-
-/// traits class for checking whether type T is a base class for all
-/// the given types in the variadic list.
-template <typename T, typename... Ts>
-using are_base_of = std::conjunction<std::is_base_of<T, Ts>...>;
-
namespace detail {
template <typename... Ts> struct Visitor;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159331.555241.patch
Type: text/x-patch
Size: 784 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230901/afcfa1ca/attachment.bin>
More information about the llvm-commits
mailing list