Add is_clock_v
This commit is contained in:
1 parent
ae017078c9
commit
ac6ca2a095
1 file changed
+2
@@ -1004,6 +1004,8 @@ struct is_clock<T, std::void_t<decltype(T::now()), typename T::rep, typename T::
|
||||
: std::true_type
|
||||
{};
|
||||
|
||||
template<class T> inline constexpr bool is_clock_v = is_clock<T>::value;
|
||||
|
||||
#endif // HAS_VOID_T
|
||||
|
||||
//----------------+
|
||||
|
||||
Reference in new issue
Block a user