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

#include <type_traits.hpp>

Inheritance diagram for boost::beast::is_const_buffer_sequence< T >:
boost::beast::detail::is_buffer_sequence< T, boost::asio::const_buffer >

Detailed Description

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

Determine if T meets the requirements of ConstBufferSequence.

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 ConstBufferSequence>
{
static_assert(is_const_buffer_sequence<ConstBufferSequence>::value,
"ConstBufferSequence requirements not met");
...

Use with std::enable_if (SFINAE):

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

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