rippled
Loading...
Searching...
No Matches
aged_associative_container.h
1#pragma once
2
3namespace beast {
4namespace detail {
5
6// Extracts the key portion of value
7template <bool maybe_map>
9{
11
12 template <class Value>
13 decltype(Value::first) const&
14 operator()(Value const& value) const
15 {
16 return value.first;
17 }
18};
19
20template <>
22{
24
25 template <class Value>
26 Value const&
27 operator()(Value const& value) const
28 {
29 return value;
30 }
31};
32
33} // namespace detail
34} // namespace beast