sparrow 0.9.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
29 template <typename T>
31
32 namespace detail
33 {
34 template <>
39
40 template <>
45
46 template <>
51 }
52
64 template <interval_type T>
66
82
83 template <class T>
84 struct is_interval_array : std::false_type
85 {
86 };
87
88 template <class T>
89 struct is_interval_array<interval_array<T>> : std::true_type
90 {
91 };
92
96 template <class T>
98};
consteval bool contains()
Checks if a typelist contains a specific type.
Definition mp_utils.hpp:633
constexpr bool is_interval_array_v
Checks whether T is a interval_array type.
primitive_array_impl< T > interval_array
Array of interval values.
interval_array< month_day_nanoseconds_interval > month_day_nanoseconds_interval_array
An interval array for month_day_nanoseconds_interval values.
interval_array< days_time_interval > days_time_interval_array
An interval array for days_time_interval values.
mpl::typelist< chrono::months, days_time_interval, month_day_nanoseconds_interval > interval_types_t
interval_array< chrono::months > months_interval_array
An interval array for std::chrono::months values.
data_type
Runtime identifier of arrow data types, usually associated with raw bytes with the associated value.
A sequence of types used for metaprogramming operations.
Definition mp_utils.hpp:123