6 #ifndef IROHA_OPTIONAL_REFERENCE_EQUAL_HPP 7 #define IROHA_OPTIONAL_REFERENCE_EQUAL_HPP 20 const std::optional<std::reference_wrapper<T>> &lhs,
21 const std::optional<std::reference_wrapper<T>> &rhs) {
22 return static_cast<bool>(lhs) == static_cast<bool>(rhs)
23 and (not lhs or lhs->get() == rhs->get());
27 #endif // IROHA_OPTIONAL_REFERENCE_EQUAL_HPP constexpr bool optionalReferenceEqual(const std::optional< std::reference_wrapper< T >> &lhs, const std::optional< std::reference_wrapper< T >> &rhs)
Definition: optional_reference_equal.hpp:19
Definition: block_query.hpp:15