ゴミ箱
Public Types | List of all members
boost::beast::get_lowest_layer< T, class > Struct Template Reference

#include <type_traits.hpp>

Public Types

using type = T
 

Detailed Description

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

Returns T::lowest_layer_type if it exists, else T

This will contain a nested type equal to T::lowest_layer_type if it exists, else type will be equal to T.

Example

Declaring a wrapper:

template<class Stream>
struct stream_wrapper
{
using next_layer_type = typename std::remove_reference<Stream>::type;
using lowest_layer_type = typename get_lowest_layer<stream_type>::type;
};

Defining a metafunction:

template<class T>
using is_stream_wrapper : std::integral_constant<bool,
! std::is_same<T, typename get_lowest_layer<T>::type>::value> {};

Member Typedef Documentation

template<class T, class = void>
using boost::beast::get_lowest_layer< T, class >::type = T

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