xrpld
Loading...
Searching...
No Matches
beast::MaybeConst< IsConst, T > Struct Template Reference

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

#include <maybe_const.h>

Public Types

using type

Public Member Functions

 MaybeConst ()=default

Detailed Description

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

Makes T const or non const depending on a bool.

Definition at line 9 of file maybe_const.h.

Member Typedef Documentation

◆ type

template<bool IsConst, class T>
using beast::MaybeConst< IsConst, T >::type
Initial value:
std::
conditional_t<IsConst, typename std::remove_const<T>::type const, std::remove_const_t<T>>

Definition at line 12 of file maybe_const.h.

Constructor & Destructor Documentation

◆ MaybeConst()

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