rippled
Loading...
Searching...
No Matches
aged_associative_container.h
1#ifndef BEAST_CONTAINER_DETAIL_AGED_ASSOCIATIVE_CONTAINER_H_INCLUDED
2#define BEAST_CONTAINER_DETAIL_AGED_ASSOCIATIVE_CONTAINER_H_INCLUDED
3
4namespace beast {
5namespace detail {
6
7// Extracts the key portion of value
8template <bool maybe_map>
10{
12
13 template <class Value>
14 decltype(Value::first) const&
15 operator()(Value const& value) const
16 {
17 return value.first;
18 }
19};
20
21template <>
23{
25
26 template <class Value>
27 Value const&
28 operator()(Value const& value) const
29 {
30 return value;
31 }
32};
33
34} // namespace detail
35} // namespace beast
36
37#endif