|
|
|||
File indexing completed on 2026-05-27 07:23:54
0001 // This file is part of the ACTS project. 0002 // 0003 // Copyright (C) 2016 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 https://mozilla.org/MPL/2.0/. 0008 0009 #pragma once 0010 0011 namespace detray { 0012 0013 namespace algebra::boolean { 0014 0015 /// Utilities for single booleans: default case 0016 /// @{ 0017 constexpr bool any_of(bool b) { 0018 return b; 0019 } 0020 constexpr bool all_of(bool b) { 0021 return b; 0022 } 0023 constexpr bool none_of(bool b) { 0024 return !b; 0025 } 0026 /// @} 0027 0028 } // namespace algebra::boolean 0029 0030 namespace detail { 0031 0032 // Pull the boolean functions directly into the detray namespace 0033 using namespace ::detray::algebra::boolean; 0034 0035 } // namespace detail 0036 0037 } // namespace detray
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|