rippled
aged_map.h
1 //------------------------------------------------------------------------------
2 /*
3  This file is part of Beast: https://github.com/vinniefalco/Beast
4  Copyright 2013, Vinnie Falco <vinnie.falco@gmail.com>
5 
6  Permission to use, copy, modify, and/or distribute this software for any
7  purpose with or without fee is hereby granted, provided that the above
8  copyright notice and this permission notice appear in all copies.
9 
10  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11  WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12  MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13  ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14  WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15  ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16  OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 */
18 //==============================================================================
19 
20 #ifndef BEAST_CONTAINER_AGED_MAP_H_INCLUDED
21 #define BEAST_CONTAINER_AGED_MAP_H_INCLUDED
22 
23 #include <ripple/beast/container/detail/aged_ordered_container.h>
24 
25 #include <chrono>
26 #include <functional>
27 #include <memory>
28 
29 namespace beast {
30 
31 template <
32  class Key,
33  class T,
34  class Clock = std::chrono::steady_clock,
35  class Compare = std::less<Key>,
36  class Allocator = std::allocator<std::pair<Key const, T>>>
37 using aged_map = detail::
38  aged_ordered_container<false, true, Key, T, Clock, Compare, Allocator>;
39 
40 }
41 
42 #endif
std::chrono::steady_clock
functional
std::less
beast::aged_map
detail::aged_ordered_container< false, true, Key, T, Clock, Compare, Allocator > aged_map
Definition: aged_map.h:38
chrono
memory
std::allocator
STL class.
beast
Definition: base_uint.h:641