mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
clang-format and clang-tidy fixes for e3ba29eb
This commit is contained in:
parent
e3ba29eb0a
commit
acc2e799f0
@ -57,7 +57,8 @@
|
|||||||
namespace others {
|
namespace others {
|
||||||
/**
|
/**
|
||||||
* @namespace lru_cache
|
* @namespace lru_cache
|
||||||
* @brief Implementation of the [LRU caching algorithm](https://en.wikipedia.org/wiki/Cache_replacement_policies#Least_recently_used_(LRU))
|
* @brief Implementation of the [LRU caching
|
||||||
|
* algorithm](https://en.wikipedia.org/wiki/Cache_replacement_policies#Least_recently_used_(LRU))
|
||||||
*/
|
*/
|
||||||
namespace lru_cache {
|
namespace lru_cache {
|
||||||
/**
|
/**
|
||||||
@ -72,9 +73,8 @@ class LRUCache {
|
|||||||
uint64_t hits =
|
uint64_t hits =
|
||||||
0; ///< Total number of hits, or total number of times a page
|
0; ///< Total number of hits, or total number of times a page
|
||||||
///< was found in cache.
|
///< was found in cache.
|
||||||
uint64_t pageFault =
|
uint64_t pageFault = 0; ///< Total number of miss/page fault, or total
|
||||||
0; ///< Total number of miss/page fault, or total number of
|
///< number of times a page was not found in cache
|
||||||
///< times a page was not found in cache
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user