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

#include <type_traits.hpp>

Inheritance diagram for boost::beast::is_dynamic_buffer< T, class >:

Detailed Description

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

Determine if T meets the requirements of DynamicBuffer.

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 DynamicBuffer>
void f(DynamicBuffer& buffer)
{
static_assert(is_dynamic_buffer<DynamicBuffer>::value,
"DynamicBuffer requirements not met");
...

Use with std::enable_if (SFINAE):

template<class DynamicBuffer>
typename std::enable_if<is_dynamic_buffer<DynamicBuffer>::value>::type
f(DynamicBuffer const& buffer);

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