mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
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>>;
|
|
|
|
}
|