aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/ylimits.h
diff options
context:
space:
mode:
authorDmitry Potapov <potapov.d@gmail.com>2022-02-10 16:46:39 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:39 +0300
commit536101ea75c9ff5df10d01c2f460b1f6e12311b3 (patch)
tree115291277ad61b2cdcf5044d210fb103b5e1647e /util/generic/ylimits.h
parent5036b5f2122001f9aef8a0e4cd85440d73ea6b9f (diff)
downloadydb-536101ea75c9ff5df10d01c2f460b1f6e12311b3.tar.gz
Restoring authorship annotation for Dmitry Potapov <potapov.d@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'util/generic/ylimits.h')
-rw-r--r--util/generic/ylimits.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/util/generic/ylimits.h b/util/generic/ylimits.h
index fe42b4dfc0e..599effa4811 100644
--- a/util/generic/ylimits.h
+++ b/util/generic/ylimits.h
@@ -15,30 +15,30 @@ template <class T>
static constexpr T Min() noexcept {
return std::numeric_limits<T>::min();
}
-
-namespace NPrivate {
- struct TMax {
- template <class T>
+
+namespace NPrivate {
+ struct TMax {
+ template <class T>
constexpr operator T() const {
- return Max<T>();
- }
- };
-
- struct TMin {
- template <class T>
+ return Max<T>();
+ }
+ };
+
+ struct TMin {
+ template <class T>
constexpr operator T() const {
- return Min<T>();
- }
- };
-}
-
+ return Min<T>();
+ }
+ };
+}
+
static constexpr ::NPrivate::TMax Max() noexcept {
return {};
-}
-
+}
+
static constexpr ::NPrivate::TMin Min() noexcept {
return {};
-}
+}
namespace NPrivate {
template <unsigned long long N>