rippled
Loading...
Searching...
No Matches
LowestLayer.h
1#pragma once
2
3#if BOOST_VERSION >= 107000
4#include <boost/beast/core/stream_traits.hpp>
5#else
6#include <boost/beast/core/type_traits.hpp>
7#endif
8
9namespace xrpl {
10
11// Before boost 1.70, get_lowest_layer required an explicit template parameter
12template <class T>
13decltype(auto)
14get_lowest_layer(T& t) noexcept
15{
16#if BOOST_VERSION >= 107000
17 return boost::beast::get_lowest_layer(t);
18#else
19 return t.lowest_layer();
20#endif
21}
22
23} // namespace xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
decltype(auto) get_lowest_layer(T &t) noexcept
Definition LowestLayer.h:14