template<class value_t>
requires std::is_enum_v<std::remove_cvref_t<value_t>>
struct xtd::is_stream_insertable< value_t >
Specialization of is_stream_insertable for types that support stream insertion into std::ostream.
- Definition
template<class value_t>
struct is_stream_insertable<value_t, std::void_t<decltype(std::declval<std::ostream&>() << std::declval<const std::remove_cvref_t<value_t>&>())>> : std::true_type {};
Type trait that determines whether a type can be inserted into an std::ostream using the stream inser...
Definition is_stream_insertable.hpp:34
- Header
#include <xtd/is_stream_insertable>
- Namespace
- xtd
- Library
- xtd.core
This specialization is selected when value_t provides a valid operator<< overload compatible with std::ostream.
- Template Parameters
-
| value_t | The type to test for stream insertability. |
- See also
- is_stream_insertable_v