tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_clock.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2// SPDX-FileCopyrightText: Copyright (C) 2023 Tobias Hienzsch
3
4#ifndef TETL_CHRONO_IS_CLOCK_HPP
5#define TETL_CHRONO_IS_CLOCK_HPP
6
7#include <etl/_type_traits/bool_constant.hpp>
8
9namespace etl::chrono {
10
11/// \brief If T satisfies the Clock requirements, provides the member
12/// constant value equal true. For any other type, value is false.
13/// \details https://en.cppreference.com/w/cpp/chrono/is_clock
14/// \ingroup chrono
15template <typename>
16struct is_clock : etl::false_type { };
17
18/// \ingroup chrono
19template <typename T>
20inline constexpr bool is_clock_v = is_clock<T>::value;
21
22} // namespace etl::chrono
23
24#endif // TETL_CHRONO_IS_CLOCK_HPP
constexpr bool is_clock_v
Definition is_clock.hpp:20
Definition abs.hpp:12
Definition adjacent_find.hpp:9
If T satisfies the Clock requirements, provides the member constant value equal true....
Definition is_clock.hpp:16