rippled
Loading...
Searching...
No Matches
include
xrpl
beast
container
detail
aged_associative_container.h
1
#pragma once
2
3
namespace
beast
{
4
namespace
detail {
5
6
// Extracts the key portion of value
7
template
<
bool
maybe_map>
8
struct
aged_associative_container_extract_t
9
{
10
explicit
aged_associative_container_extract_t
() =
default
;
11
12
template
<
class
Value>
13
decltype
(Value::first)
const
&
14
operator
()(Value
const
& value)
const
15
{
16
return
value.first;
17
}
18
};
19
20
template
<>
21
struct
aged_associative_container_extract_t
<false>
22
{
23
explicit
aged_associative_container_extract_t
() =
default
;
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
beast
Definition
base_uint.h:637
beast::detail::aged_associative_container_extract_t< false >::operator()
Value const & operator()(Value const &value) const
Definition
aged_associative_container.h:27
beast::detail::aged_associative_container_extract_t< false >::aged_associative_container_extract_t
aged_associative_container_extract_t()=default
beast::detail::aged_associative_container_extract_t
Definition
aged_associative_container.h:9
beast::detail::aged_associative_container_extract_t::aged_associative_container_extract_t
aged_associative_container_extract_t()=default
Generated by
1.9.8