Warning, file /include/Acts/Utilities/detail/MPL/are_sorted.hpp was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009 #pragma once
0010 namespace Acts::detail {
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027 template <bool ascending, bool strict, typename T, T... values>
0028 struct are_sorted;
0029
0030
0031
0032 template <bool ascending, bool strict, typename T, T v>
0033 struct are_sorted<ascending, strict, T, v> {
0034 enum { value = true };
0035 };
0036
0037
0038 template <typename T, T a, T b, T... N>
0039 struct are_sorted<true, true, T, a, b, N...> {
0040 enum { value = ((a < b) && are_sorted<true, true, T, b, N...>::value) };
0041 };
0042
0043
0044 template <typename T, T a, T b, T... N>
0045 struct are_sorted<true, false, T, a, b, N...> {
0046 enum { value = (a <= b && are_sorted<true, false, T, b, N...>::value) };
0047 };
0048
0049
0050 template <typename T, T a, T b, T... N>
0051 struct are_sorted<false, true, T, a, b, N...> {
0052 enum { value = (a > b && are_sorted<false, true, T, b, N...>::value) };
0053 };
0054
0055
0056 template <typename T, T a, T b, T... N>
0057 struct are_sorted<false, false, T, a, b, N...> {
0058 enum { value = (a >= b && are_sorted<false, false, T, b, N...>::value) };
0059 };
0060
0061 }