ゴミ箱
boost::beast::http::is_body_reader< T, class > Struct Template Reference

#include <type_traits.hpp>

Inheritance diagram for boost::beast::http::is_body_reader< T, class >:

Detailed Description

template<class T, class = void>
struct boost::beast::http::is_body_reader< T, class >

Determine if a Body type has a reader.

This metafunction is equivalent to std::true_type if:

Template Parameters
TThe body type to test.
Example
template<bool isRequest, class Body, class Fields>
void check_can_serialize(message<isRequest, Body, Fields> const&)
{
static_assert(is_body_reader<Body>::value,
"Cannot serialize Body, no reader");
}

The documentation for this struct was generated from the following file: