Skip to content

Commit

Permalink
[ADT][NFC] Remove some redundant code
Browse files Browse the repository at this point in the history
Some typetraits are defined twice, delete this part of the code.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D159331
  • Loading branch information
yuntaopan authored and MaskRay committed Sep 2, 2023
1 parent fc04472 commit fc0a18f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions llvm/include/llvm/ADT/STLExtras.h
Original file line number Diff line number Diff line change
Expand Up @@ -1484,16 +1484,6 @@ struct on_first {
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;

Expand Down

0 comments on commit fc0a18f

Please sign in to comment.