mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-07 12:32:28 +00:00
Signed-off-by: JCW <a1q123456@users.noreply.github.com> Co-authored-by: Bart <bthomee@users.noreply.github.com>
15 lines
310 B
C++
15 lines
310 B
C++
#pragma once
|
|
|
|
#include <optional>
|
|
#include <type_traits>
|
|
|
|
namespace xrpl::protocol_autogen {
|
|
|
|
template <typename ValueType>
|
|
using Optional = std::conditional_t<
|
|
std::is_reference_v<ValueType>,
|
|
std::optional<std::reference_wrapper<std::remove_reference_t<ValueType>>>,
|
|
std::optional<ValueType>>;
|
|
|
|
}
|