sparrow 0.3.0
Loading...
Searching...
No Matches
interval_array.hpp
Go to the documentation of this file.
1// Copyright 2024 Man Group Operations Limited
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#pragma once
16
20
21// tiM : std::chrono::months
22// tiD : sparrow::day_time_interval
23// tin : sparrow::month_day_nanoseconds_interval
24
25namespace sparrow
26{
28
30 template <typename T>
32
45 template <interval_type T>
47
51
52 template <class T>
53 struct is_interval_array : std::false_type
54 {
55 };
56
57 template <class T>
58 struct is_interval_array<interval_array<T>> : std::true_type
59 {
60 };
61
65 template <class T>
67}
consteval bool contains(L list)
Definition mp_utils.hpp:285
constexpr bool is_interval_array_v
Checks whether T is a interval_array type.
array_trivial_copyable< T > interval_array
Array of interval values.
interval_array< month_day_nanoseconds_interval > month_day_nanoseconds_interval_array
static constexpr interval_types_t interval_types
interval_array< days_time_interval > days_time_interval_array
mpl::typelist< chrono::months, days_time_interval, month_day_nanoseconds_interval > interval_types_t
interval_array< chrono::months > months_interval_array
A sequence of types, used for meta-programming operations.
Definition mp_utils.hpp:55