Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/Acts/Utilities/detail/MPL/any_of.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // This file is part of the Acts project.
0002 //
0003 // Copyright (C) 2016-2018 CERN for the benefit of the Acts project
0004 //
0005 // This Source Code Form is subject to the terms of the Mozilla Public
0006 // License, v. 2.0. If a copy of the MPL was not distributed with this
0007 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
0008 
0009 #pragma once
0010 #include <type_traits>
0011 
0012 namespace Acts::detail {
0013 
0014 namespace {
0015 // clang-format off
0016     template <bool... values>
0017     struct any_of : std::false_type {};
0018 
0019     template <bool... others>
0020     struct any_of<true, others...> : public std::true_type {};
0021 
0022     template <bool... others>
0023     struct any_of<false, others...> : public any_of<others...> {};
0024 // clang-format on
0025 }  // namespace
0026 
0027 template <bool... values>
0028 constexpr bool any_of_v = any_of<values...>::value;
0029 }  // namespace Acts::detail