libstdc++: sample_update_policy.hpp Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41#ifndef PB_DS_SAMPLE_UPDATE_POLICY_HPP
42#define PB_DS_SAMPLE_UPDATE_POLICY_HPP
43
45{
46
48 {
49
51
52
54
55
56 inline void
58
59 protected:
60
62
63
66
67
68
69
70
71
72 bool
74 };
75}
76#endif
GNU extensions for policy-based data structures for public use.
A sample list-update policy.
sample_update_policy(const sample_update_policy &)
Copy constructor.
bool operator()(metadata_reference) const
Decides whether a metadata object should be moved to the front of the list. A list-update based conta...
sample_update_policy()
Default constructor.
metadata_type operator()() const
Creates a metadata object.
void swap(sample_update_policy &other)
Swaps content.
some_metadata_type metadata_type
Metadata on which this functor operates.