...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Determine if T
meets the
requirements of Body.
Defined in header <boost/beast/http/type_traits.hpp>
template< class T> struct is_body : public std::integral_constant< bool,...>
This metafunction is equivalent to std::true_type
if T
has a nested type named
value_type
.
Type |
Description |
---|---|
|
The body type to test. |
template<bool isRequest, class Body, class Fields> void check_body(message<isRequest, Body, Fields> const&) { static_assert(is_body<Body>::value, "Body requirements not met"); }
Convenience header <boost/beast/http.hpp>