rippled
Public Types | Public Member Functions | List of all members
beast::maybe_const< IsConst, T > Struct Template Reference

Makes T const or non const depending on a bool. More...

Public Types

using type = typename std::conditional< IsConst, typename std::remove_const< T >::type const, typename std::remove_const< T >::type >::type
 

Public Member Functions

 maybe_const ()=default
 

Detailed Description

template<bool IsConst, class T>
struct beast::maybe_const< IsConst, T >

Makes T const or non const depending on a bool.

Definition at line 29 of file maybe_const.h.

Member Typedef Documentation

◆ type

template<bool IsConst, class T >
using beast::maybe_const< IsConst, T >::type = typename std::conditional< IsConst, typename std::remove_const<T>::type const, typename std::remove_const<T>::type>::type

Definition at line 35 of file maybe_const.h.

Constructor & Destructor Documentation

◆ maybe_const()

template<bool IsConst, class T >
beast::maybe_const< IsConst, T >::maybe_const ( )
explicitdefault