xrpld
Loading...
Searching...
No Matches
include
xrpl
beast
utility
maybe_const.h
1
#pragma once
2
3
#include <
type_traits
>
4
5
namespace
beast
{
6
8
template
<
bool
IsConst,
class
T>
9
struct
MaybeConst
10
{
11
explicit
MaybeConst
() =
default
;
12
using
type
= std::
13
conditional_t<IsConst, typename std::remove_const<T>::type
const
,
std::remove_const_t<T>
>;
14
};
15
17
template
<
bool
IsConst,
class
T>
18
using
maybe_const_t
=
MaybeConst<IsConst, T>::type
;
19
20
}
// namespace beast
beast
Definition
base_uint.h:673
beast::maybe_const_t
MaybeConst< IsConst, T >::type maybe_const_t
Alias for omitting typename.
Definition
maybe_const.h:18
std::remove_const_t
beast::MaybeConst::MaybeConst
MaybeConst()=default
beast::MaybeConst::type
std:: conditional_t< IsConst, typename std::remove_const< T >::type const, std::remove_const_t< T > > type
Definition
maybe_const.h:12
type_traits
Generated by
1.16.1