ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
boolean.hpp
1// This file is part of the ACTS project.
2//
3// Copyright (C) 2016 CERN for the benefit of the ACTS project
4//
5// This Source Code Form is subject to the terms of the Mozilla Public
6// License, v. 2.0. If a copy of the MPL was not distributed with this
7// file, You can obtain one at https://mozilla.org/MPL/2.0/.
8
9#pragma once
10
11namespace detray {
12
13namespace algebra::boolean {
14
17constexpr bool any_of(bool b) {
18 return b;
19}
20constexpr bool all_of(bool b) {
21 return b;
22}
23constexpr bool none_of(bool b) {
24 return !b;
25}
27
28} // namespace algebra::boolean
29
30namespace detail {
31
32// Pull the boolean functions directly into the detray namespace
33using namespace ::detray::algebra::boolean;
34
35} // namespace detail
36
37} // namespace detray
Detray include(s).
Definition array_operators.hpp:18