// Copyright 2019 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_BASE_TYPE_TRAITS_H_ #define V8_BASE_TYPE_TRAITS_H_ #include namespace v8 { namespace internal { // Conjunction metafunction. template struct conjunction; template <> struct conjunction<> : std::true_type {}; template struct conjunction : T {}; template struct conjunction : std::conditional, T>::type {}; // Disjunction metafunction. template struct disjunction; template <> struct disjunction<> : std::true_type {}; template struct disjunction : T {}; template struct disjunction : std::conditional>::type {}; // Negation metafunction. template struct negation : std::integral_constant {}; } // namespace internal } // namespace v8 #endif // V8_BASE_TYPE_TRAITS_H_