![]() |
Home | Libraries | People | FAQ | More |
Determine if T
meets the
requirements of Fields.
Defined in header <boost/beast/http/type_traits.hpp>
template< class T> struct is_fields : public std::integral_constant< bool,...>
Type |
Description |
---|---|
|
The body type to test. |
Use with static_assert
:
template<bool isRequest, class Body, class Fields> void f(message<isRequest, Body, Fields> const&) { static_assert(is_fields<Fields>::value, "Fields requirements not met"); ...
Use with std::enable_if
(SFINAE):
template<bool isRequest, class Body, class Fields> typename std::enable_if<is_fields<Fields>::value>::type f(message<isRequest, Body, Fields> const&);
Convenience header <boost/beast/http.hpp>