xrpld
Loading...
Searching...
No Matches
include
xrpl
beast
container
detail
aged_associative_container.h
1
#pragma once
2
3
namespace
beast::detail
{
4
5
// Extracts the key portion of value
6
template
<
bool
MaybeMap>
7
struct
AgedAssociativeContainerExtractT
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
19
template
<>
20
struct
AgedAssociativeContainerExtractT
<false>
21
{
22
explicit
AgedAssociativeContainerExtractT
() =
default
;
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
beast::detail
Definition
abstract_clock.h:56
beast::detail::AgedAssociativeContainerExtractT< false >::operator()
Value const & operator()(Value const &value) const
Definition
aged_associative_container.h:26
beast::detail::AgedAssociativeContainerExtractT< false >::AgedAssociativeContainerExtractT
AgedAssociativeContainerExtractT()=default
beast::detail::AgedAssociativeContainerExtractT::AgedAssociativeContainerExtractT
AgedAssociativeContainerExtractT()=default
Generated by
1.16.1