sparrow 0.3.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 static constexpr date_types_t date_types;
28 template <typename T>
30
43 template <date_type T>
45
48
49 template <class T>
50 struct is_date_array : std::false_type
51 {
52 };
53
54 template <class T>
55 struct is_date_array<date_array<T>> : std::true_type
56 {
57 };
58
62 template <class T>
64}
consteval bool contains(L list)
Definition mp_utils.hpp:285
array_trivial_copyable< T > date_array
Array of std::chrono::duration values.
constexpr bool is_date_array_v
Checks whether T is a date_array type.
date_array< date_milliseconds > date_milliseconds_array
static constexpr date_types_t date_types
mpl::typelist< date_days, date_milliseconds > date_types_t
date_array< date_days > date_days_array
A sequence of types, used for meta-programming operations.
Definition mp_utils.hpp:55