20#ifndef SBL_COMMON_LOG_SINK_HPP_
21#define SBL_COMMON_LOG_SINK_HPP_
31 static void write(
const char*) {}
41template<
typename T,
typename =
void>
42struct is_sink : std::false_type {};
44struct is_sink<
T, std::
void_t<decltype(T::write(std::declval<const char*>()))>> : std::true_type {};
46template<
typename T,
typename =
void>
47struct is_timestamp : std::false_type {};
49struct is_timestamp<
T, std::
void_t<decltype(T::now())>> : std::is_convertible<decltype(T::now()), uint32_t> {};
55inline constexpr bool is_sink_v = detail::is_sink<T>::value;
constexpr bool is_timestamp_v