sparrow 0.9.0
Loading...
Searching...
No Matches
date_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 mplied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#pragma once
16
19
20// tdD : std::chrono::seconds
21// tdm : std::chrono::milliseconds
22
23namespace sparrow
24{
26
27 template <typename T>
29
30 namespace detail
31 {
32 template <>
37
38 template <>
43 }
44
57 template <date_type T>
59
70
71 template <class T>
72 struct is_date_array : std::false_type
73 {
74 };
75
76 template <class T>
77 struct is_date_array<date_array<T>> : std::true_type
78 {
79 };
80
84 template <class T>
86}
consteval bool contains()
Checks if a typelist contains a specific type.
Definition mp_utils.hpp:633
constexpr bool is_date_array_v
Checks whether T is a date_array type.
date_array< date_milliseconds > date_milliseconds_array
A date array for date_milliseconds values.
mpl::typelist< date_days, date_milliseconds > date_types_t
primitive_array_impl< T > date_array
Array of std::chrono::duration values.
date_array< date_days > date_days_array
A date array for date_days values.
std::chrono::time_point< std::chrono::system_clock, std::chrono::milliseconds > date_milliseconds
data_type
Runtime identifier of arrow data types, usually associated with raw bytes with the associated value.
std::chrono::time_point< std::chrono::system_clock, chrono::days > date_days
A sequence of types used for metaprogramming operations.
Definition mp_utils.hpp:123