aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/poco/Foundation/include/Poco/LRUCache.h
diff options
context:
space:
mode:
authororivej <orivej@yandex-team.ru>2022-02-10 16:45:01 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:01 +0300
commit2d37894b1b037cf24231090eda8589bbb44fb6fc (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/libs/poco/Foundation/include/Poco/LRUCache.h
parent718c552901d703c502ccbefdfc3c9028d608b947 (diff)
downloadydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/poco/Foundation/include/Poco/LRUCache.h')
-rw-r--r--contrib/libs/poco/Foundation/include/Poco/LRUCache.h112
1 files changed, 56 insertions, 56 deletions
diff --git a/contrib/libs/poco/Foundation/include/Poco/LRUCache.h b/contrib/libs/poco/Foundation/include/Poco/LRUCache.h
index 2bfa10ddaa..7f8f0debd9 100644
--- a/contrib/libs/poco/Foundation/include/Poco/LRUCache.h
+++ b/contrib/libs/poco/Foundation/include/Poco/LRUCache.h
@@ -1,56 +1,56 @@
-//
-// LRUCache.h
-//
-// Library: Foundation
-// Package: Cache
-// Module: LRUCache
-//
-// Definition of the LRUCache class.
-//
-// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
-// and Contributors.
-//
-// SPDX-License-Identifier: BSL-1.0
-//
-
-
-#ifndef Foundation_LRUCache_INCLUDED
-#define Foundation_LRUCache_INCLUDED
-
-
-#include "Poco/AbstractCache.h"
-#include "Poco/LRUStrategy.h"
-
-
-namespace Poco {
-
-
-template <
- class TKey,
- class TValue,
- class TMutex = FastMutex,
- class TEventMutex = FastMutex
->
-class LRUCache: public AbstractCache<TKey, TValue, LRUStrategy<TKey, TValue>, TMutex, TEventMutex>
- /// An LRUCache implements Least Recently Used caching. The default size for a cache is 1024 entries.
-{
-public:
- LRUCache(long size = 1024):
- AbstractCache<TKey, TValue, LRUStrategy<TKey, TValue>, TMutex, TEventMutex>(LRUStrategy<TKey, TValue>(size))
- {
- }
-
- ~LRUCache()
- {
- }
-
-private:
- LRUCache(const LRUCache& aCache);
- LRUCache& operator = (const LRUCache& aCache);
-};
-
-
-} // namespace Poco
-
-
-#endif // Foundation_LRUCache_INCLUDED
+//
+// LRUCache.h
+//
+// Library: Foundation
+// Package: Cache
+// Module: LRUCache
+//
+// Definition of the LRUCache class.
+//
+// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
+// and Contributors.
+//
+// SPDX-License-Identifier: BSL-1.0
+//
+
+
+#ifndef Foundation_LRUCache_INCLUDED
+#define Foundation_LRUCache_INCLUDED
+
+
+#include "Poco/AbstractCache.h"
+#include "Poco/LRUStrategy.h"
+
+
+namespace Poco {
+
+
+template <
+ class TKey,
+ class TValue,
+ class TMutex = FastMutex,
+ class TEventMutex = FastMutex
+>
+class LRUCache: public AbstractCache<TKey, TValue, LRUStrategy<TKey, TValue>, TMutex, TEventMutex>
+ /// An LRUCache implements Least Recently Used caching. The default size for a cache is 1024 entries.
+{
+public:
+ LRUCache(long size = 1024):
+ AbstractCache<TKey, TValue, LRUStrategy<TKey, TValue>, TMutex, TEventMutex>(LRUStrategy<TKey, TValue>(size))
+ {
+ }
+
+ ~LRUCache()
+ {
+ }
+
+private:
+ LRUCache(const LRUCache& aCache);
+ LRUCache& operator = (const LRUCache& aCache);
+};
+
+
+} // namespace Poco
+
+
+#endif // Foundation_LRUCache_INCLUDED