mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-04 21:24:26 +02:00
Add is_clock_v
This commit is contained in:
@@ -1004,6 +1004,8 @@ struct is_clock<T, std::void_t<decltype(T::now()), typename T::rep, typename T::
|
|||||||
: std::true_type
|
: std::true_type
|
||||||
{};
|
{};
|
||||||
|
|
||||||
|
template<class T> inline constexpr bool is_clock_v = is_clock<T>::value;
|
||||||
|
|
||||||
#endif // HAS_VOID_T
|
#endif // HAS_VOID_T
|
||||||
|
|
||||||
//----------------+
|
//----------------+
|
||||||
|
Reference in New Issue
Block a user