summaryrefslogtreecommitdiffstats
path: root/util/generic/ylimits.h
diff options
context:
space:
mode:
authorDmitry Potapov <[email protected]>2022-02-10 16:46:39 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:46:39 +0300
commit7aa4cf700385ff96999c5cc301171ff157974773 (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /util/generic/ylimits.h
parent536101ea75c9ff5df10d01c2f460b1f6e12311b3 (diff)
Restoring authorship annotation for Dmitry Potapov <[email protected]>. Commit 2 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 599effa4811..fe42b4dfc0e 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>