xrpld
Loading...
Searching...
No Matches
aged_associative_container.h
1#pragma once
2
3namespace beast::detail {
4
5// Extracts the key portion of value
6template <bool MaybeMap>
8{
9 explicit AgedAssociativeContainerExtractT() = default;
10
11 template <class Value>
12 decltype(Value::first) const&
13 operator()(Value const& value) const
14 {
15 return value.first;
16 }
17};
18
19template <>
21{
23
24 template <class Value>
25 Value const&
26 operator()(Value const& value) const
27 {
28 return value; // NOLINT(bugprone-return-const-ref-from-parameter)
29 }
30};
31
32} // namespace beast::detail