ゴミ箱
boost::beast::is_mutable_buffer_sequence< T > Struct Template Reference

#include <type_traits.hpp>

Inheritance diagram for boost::beast::is_mutable_buffer_sequence< T >:
boost::beast::detail::is_buffer_sequence< T, boost::asio::mutable_buffer >

Detailed Description

template<class T>
struct boost::beast::is_mutable_buffer_sequence< T >

Determine if T meets the requirements of MutableBufferSequence.

Metafunctions are used to perform compile time checking of template types. This type will be std::true_type if T meets the requirements, else the type will be std::false_type.

Example

Use with static_assert:

template<class MutableBufferSequence>
void f(MutableBufferSequence const& buffers)
{
static_assert(is_const_buffer_sequence<MutableBufferSequence>::value,
"MutableBufferSequence requirements not met");
...

Use with std::enable_if (SFINAE):

template<class MutableBufferSequence>
typename std::enable_if<is_mutable_buffer_sequence<MutableBufferSequence>::value>::type
f(MutableBufferSequence const& buffers);

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