10 #ifndef BOOST_BEAST_HTTP_TYPE_TRAITS_HPP 11 #define BOOST_BEAST_HTTP_TYPE_TRAITS_HPP 18 #include <boost/asio/buffer.hpp> 19 #include <boost/optional.hpp> 20 #include <type_traits> 27 template<
bool,
class,
class>
48 #if BOOST_BEAST_DOXYGEN 49 struct is_body : std::integral_constant<bool, ...>{};
74 #if BOOST_BEAST_DOXYGEN 78 template<
class T,
class =
void>
84 typename T::reader::const_buffers_type,
86 std::declval<typename T::reader&>().init(std::declval<error_code&>()),
87 std::declval<boost::optional<std::pair<
88 typename T::reader::const_buffers_type, bool>>&>() =
89 std::declval<typename T::reader>().get(std::declval<error_code&>()),
90 (void)0)>> : std::integral_constant<bool,
91 is_const_buffer_sequence<
92 typename T::reader::const_buffers_type>::value &&
93 std::is_constructible<typename T::reader,
94 message<true, T, detail::fields_model>&>::value &&
95 std::is_constructible<typename T::reader,
96 message<false, T, detail::fields_model>&>::value
120 #if BOOST_BEAST_DOXYGEN 124 template<
class T,
class =
void>
129 std::declval<typename T::writer&>().init(
130 boost::optional<std::uint64_t>(),
131 std::declval<error_code&>()),
132 std::declval<std::size_t&>() =
133 std::declval<typename T::writer&>().put(
134 std::declval<boost::asio::const_buffers_1>(),
135 std::declval<error_code&>()),
136 std::declval<typename T::writer&>().finish(
137 std::declval<error_code&>()),
138 (void)0)>> : std::integral_constant<bool,
139 std::is_constructible<typename T::writer,
140 message<true, T, detail::fields_model>&>::value &&
141 std::is_constructible<typename T::writer,
142 message<false, T, detail::fields_model>&>::value
173 #if BOOST_BEAST_DOXYGEN 175 struct is_fields : std::integral_constant<bool, ...> {};
Definition: async_result.hpp:20
Definition: beast_common.hpp:6
std::integral_constant< bool, t1::value &&t2::value &&t3::value &&t4::value &&t5::value &&t6::value &&t7::value &&t8::value &&t9::value &&t10::value &&t11::value > type
Definition: type_traits.hpp:184
Definition: type_traits.hpp:125
Definition: type_traits.hpp:79
detail::has_value_type< T > is_body
Definition: type_traits.hpp:51
typename make_void< Ts... >::type void_t
Definition: type_traits.hpp:62
Definition: type_traits.hpp:73
typename detail::is_fields_helper< T >::type is_fields
Definition: type_traits.hpp:178