This commit is contained in:
2024-09-12 18:09:36 +03:00
parent 8ae489f1c5
commit f215ea7a6d
3 changed files with 202 additions and 14 deletions

View File

@@ -1,11 +1,11 @@
#pragma once
#include <chrono>
#include <format>
#include <ranges>
#include <tuple>
#include <type_traits>
/*
ABSTRACT DEVICE COMPONENTS LIBRARY
@@ -202,4 +202,12 @@ template <typename T>
concept adc_tuple_like = adc_is_tuple_v<T> == true;
template <typename T>
// from https://stackoverflow.com/questions/74383254/concept-that-models-only-the-stdchrono-duration-types
concept adc_time_duration_c = requires {
[]<class Rep, class Period>(std::type_identity<std::chrono::duration<Rep, Period>>) {}(std::type_identity<T>());
};
} // namespace adc::traits