diff options
author | agorodilov <agorodilov@yandex-team.ru> | 2022-02-10 16:47:09 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:09 +0300 |
commit | 7a4979e6211c3e78c7f9041d4a9e5d3405343c36 (patch) | |
tree | 9e9943579e5a14679af7cd2cda3c36d8c0b775d3 /util/generic/utility.h | |
parent | 676340c42e269f3070f194d160f42a83a10568d4 (diff) | |
download | ydb-7a4979e6211c3e78c7f9041d4a9e5d3405343c36.tar.gz |
Restoring authorship annotation for <agorodilov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/utility.h')
-rw-r--r-- | util/generic/utility.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/generic/utility.h b/util/generic/utility.h index 43b98eeafc..37a87e222b 100644 --- a/util/generic/utility.h +++ b/util/generic/utility.h @@ -24,7 +24,7 @@ static constexpr const T& Max(const T& a, const T& b, const Args&... args) { return Max(a, Max(b, args...)); } -// replace with http://en.cppreference.com/w/cpp/algorithm/clamp in c++17 +// replace with http://en.cppreference.com/w/cpp/algorithm/clamp in c++17 template <class T> constexpr const T& ClampVal(const T& val, const T& min, const T& max) { return val < min ? min : (max < val ? max : val); @@ -44,7 +44,7 @@ static T Mean(const Args&... other) noexcept { template <class T> static inline void Zero(T& t) noexcept { - memset((void*)&t, 0, sizeof(t)); + memset((void*)&t, 0, sizeof(t)); } /** |