xtd 0.2.0
Loading...
Searching...
No Matches

Definition

Contains traits definitions.

Classes

struct  xtd::is_value_type< value_t, typename >
 Type trait that determines whether a type can be inserted into an std::ostream using the stream insertion operator (operator<<). More...
struct  xtd::is_value_type< xtd::value_type< value_t > >
 Specialization of is_value_type for types that support stream insertion into std::ostream. More...

Variables

template<typename value_t>
constexpr bool xtd::is_value_type_v
 Convenience variable template equivalent to is_value_type_v<value_t>::value.

Variable Documentation

◆ is_value_type_v

template<typename value_t>
bool xtd::is_value_type_v
inlineconstexpr

#include <is_value_type.hpp>

Convenience variable template equivalent to is_value_type_v<value_t>::value.

Definition
template<typename value_t>
inline constexpr bool is_value_type_v = is_value_type<xtd::raw_type<value_t>>::value;
constexpr bool is_value_type_v
Convenience variable template equivalent to is_value_type_v<value_t>::value.
Definition is_value_type.hpp:79
Type trait that determines whether a type can be inserted into an std::ostream using the stream inser...
Definition is_value_type.hpp:34
Header
#include <xtd/is_value_type>
Namespace
xtd
Library
xtd.core

This helper allows simpler and more readable usage, especially in if constexpr expressions and static assertions.

Template Parameters
value_tThe type to test for stream insertability.
See also
is_value_type