Skip to content

Commit

Permalink
Add is_clock_v
Browse files Browse the repository at this point in the history
  • Loading branch information
HowardHinnant committed Apr 15, 2021
1 parent ae01707 commit ac6ca2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/date/date.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

//----------------+
Expand Down

0 comments on commit ac6ca2a

Please sign in to comment.