diff options
author | slesarev <slesarev@yandex-team.ru> | 2022-02-10 16:46:58 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:58 +0300 |
commit | 5598c5e7bc7619bd51d87fea7b880b7788ad0b47 (patch) | |
tree | b83306b6e37edeea782e9eed673d89286c4fef35 /util | |
parent | 7aa53a76943e449d3889a4e711338deb819fcd1f (diff) | |
download | ydb-5598c5e7bc7619bd51d87fea7b880b7788ad0b47.tar.gz |
Restoring authorship annotation for <slesarev@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util')
-rw-r--r-- | util/generic/algorithm.h | 16 | ||||
-rw-r--r-- | util/system/filemap.cpp | 8 |
2 files changed, 12 insertions, 12 deletions
diff --git a/util/generic/algorithm.h b/util/generic/algorithm.h index ee2c40d605..badfb88993 100644 --- a/util/generic/algorithm.h +++ b/util/generic/algorithm.h @@ -258,16 +258,16 @@ static inline void MakeHeap(I f, I l, C c) { std::make_heap(f, l, c); } -template <class I> -static inline void SortHeap(I f, I l) { +template <class I> +static inline void SortHeap(I f, I l) { std::sort_heap(f, l); -} - -template <class I, class C> -static inline void SortHeap(I f, I l, C c) { +} + +template <class I, class C> +static inline void SortHeap(I f, I l, C c) { std::sort_heap(f, l, c); -} - +} + template <class I, class T> static inline I LowerBound(I f, I l, const T& v) { return std::lower_bound(f, l, v); diff --git a/util/system/filemap.cpp b/util/system/filemap.cpp index 7184f36ab0..7454a4cb94 100644 --- a/util/system/filemap.cpp +++ b/util/system/filemap.cpp @@ -139,7 +139,7 @@ public: } else { Mapping_ = MAP_FAILED; } -#elif defined(_unix_) +#elif defined(_unix_) if (!(Mode_ & oNotGreedy)) { PtrStart_ = mmap((caddr_t) nullptr, Length_, ModeToMmapProt(Mode_), ModeToMmapFlags(Mode_), File_.GetHandle(), 0); @@ -300,7 +300,7 @@ public: void Evict() { #if defined(_unix_) -// Evict(PtrStart_, Length_); +// Evict(PtrStart_, Length_); #endif } @@ -310,7 +310,7 @@ public: ::CloseHandle(Mapping_); // != FALSE Mapping_ = nullptr; } -#elif defined(_unix_) +#elif defined(_unix_) if (PtrStart_) { munmap((caddr_t)PtrStart_, Length_); } @@ -341,7 +341,7 @@ private: #if defined(_win_) void* Mapping_; -#elif defined(_unix_) +#elif defined(_unix_) void* PtrStart_; #endif }; |