12#if defined(PEAK_ENABLE_FORMAT_SUPPORT) && defined(__has_include)
13# if __has_include(<format>)
15# include <string_view>
25 typename std::enable_if<std::is_enum<T>::value,
decltype(os <<
ToString(entry))>::type
34 typename std::enable_if<std::is_enum<T>::value,
decltype(os <<
ToString(entry))>::type
42#if defined(PEAK_ENABLE_FORMAT_SUPPORT) && defined(__cpp_lib_format)
45requires std::is_enum_v<T>&&
requires(T e)
49struct std::formatter<T> : std::formatter<std::string_view>
51 auto format(T e, std::format_context& ctx)
const
53 return std::formatter<std::string_view>::format(
ToString(e), ctx);
The "nodes" namespace contains all GenAPI node types.
Definition peak_utils.hpp:31
auto operator<<(std::ostream &os, T entry) -> typename std::enable_if< std::is_enum< T >::value, decltype(os<< ToString(entry))>::type
Definition peak_utils.hpp:33
PEAK_COMMON_NO_DISCARD std::string ToString(NodeCacheUsePolicy entry)
Definition peak_common_node_enums.hpp:69
The "core" namespace contains the direct GenAPI and GenTL wrapper.
Definition peak_buffer.hpp:32
auto operator<<(std::ostream &os, T entry) -> typename std::enable_if< std::is_enum< T >::value, decltype(os<< ToString(entry))>::type
Definition peak_utils.hpp:24
std::string ToString(BufferPayloadType entry)
Definition peak_buffer.hpp:635
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition peak_buffer.hpp:29