Distributed Cache
src
cache
cache_policies.h
Go to the documentation of this file.
1
#pragma once
2
#include <istream>
3
4
enum class
CachePolicy
{
LRU
};
5
6
std::istream&
operator>>
(std::istream& in,
CachePolicy
& policy)
7
{
8
std::string token;
9
in >> token;
10
if
(token ==
"LRU"
)
11
policy =
CachePolicy::LRU
;
12
else
13
in.setstate(std::ios_base::failbit);
14
return
in;
15
}
CachePolicy
CachePolicy
Definition:
cache_policies.h:4
CachePolicy::LRU
@ LRU
operator>>
std::istream & operator>>(std::istream &in, CachePolicy &policy)
Definition:
cache_policies.h:6
Generated by
1.8.18