rippled
Loading...
Searching...
No Matches
maybe_const.h
1#pragma once
2
3#include <type_traits>
4
5namespace beast {
6
8template <bool IsConst, class T>
15
17template <bool IsConst, class T>
19
20} // namespace beast
T is_same_v
typename maybe_const< IsConst, T >::type maybe_const_t
Alias for omitting typename.
Definition maybe_const.h:18
Makes T const or non const depending on a bool.
Definition maybe_const.h:10
typename std::conditional< IsConst, typename std::remove_const< T >::type const, typename std::remove_const< T >::type >::type type
Definition maybe_const.h:13
maybe_const()=default