summaryrefslogtreecommitdiffstats
path: root/util/generic
diff options
context:
space:
mode:
authorsankear <[email protected]>2022-02-10 16:50:10 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:50:10 +0300
commit7377d7b033ffbef85e9bb0bf35091a8e79ed422c (patch)
treefca7665beced1b829e5ab628094d3721a66c1001 /util/generic
parentf054f783b50cf93fa12c0cc6375769c21f3fd27e (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/generic')
-rw-r--r--util/generic/maybe.h18
-rw-r--r--util/generic/maybe_ut.cpp20
-rw-r--r--util/generic/vector.h4
3 files changed, 21 insertions, 21 deletions
diff --git a/util/generic/maybe.h b/util/generic/maybe.h
index 34d21aebcdc..ce476a171da 100644
--- a/util/generic/maybe.h
+++ b/util/generic/maybe.h
@@ -708,15 +708,15 @@ template <class T, class TPolicy, class U, std::enable_if_t<std::is_convertible<
constexpr bool operator>=(const U& value, const TMaybe<T, TPolicy>& maybe) {
return !(value < maybe);
}
-
+
class IOutputStream;
-
-template <class T, class TPolicy>
+
+template <class T, class TPolicy>
inline IOutputStream& operator<<(IOutputStream& out, const TMaybe<T, TPolicy>& maybe) {
- if (maybe.Defined()) {
- out << *maybe;
- } else {
+ if (maybe.Defined()) {
+ out << *maybe;
+ } else {
out << TStringBuf("(empty maybe)");
- }
- return out;
-}
+ }
+ return out;
+}
diff --git a/util/generic/maybe_ut.cpp b/util/generic/maybe_ut.cpp
index 2c1a425c5ef..ae5b46adeaf 100644
--- a/util/generic/maybe_ut.cpp
+++ b/util/generic/maybe_ut.cpp
@@ -787,14 +787,14 @@ Y_UNIT_TEST_SUITE(TMaybeTest) {
UNIT_ASSERT(m2 == Nothing());
}
}
-
+
Y_UNIT_TEST(TestOutputStreamEmptyMaybe) {
TString s;
- TStringOutput output(s);
- output << TMaybe<int>();
- UNIT_ASSERT_EQUAL("(empty maybe)", s);
- }
-
+ TStringOutput output(s);
+ output << TMaybe<int>();
+ UNIT_ASSERT_EQUAL("(empty maybe)", s);
+ }
+
Y_UNIT_TEST(TestOutputStreamNothing) {
TString s;
TStringOutput output(s);
@@ -804,10 +804,10 @@ Y_UNIT_TEST_SUITE(TMaybeTest) {
Y_UNIT_TEST(TestOutputStreamDefinedMaybe) {
TString s;
- TStringOutput output(s);
- output << TMaybe<int>(42);
- UNIT_ASSERT_EQUAL("42", s);
- }
+ TStringOutput output(s);
+ output << TMaybe<int>(42);
+ UNIT_ASSERT_EQUAL("42", s);
+ }
Y_UNIT_TEST(TestMaybeCovarianceImplicit) {
struct TestStruct {
diff --git a/util/generic/vector.h b/util/generic/vector.h
index a5b258955a8..843ac659c8c 100644
--- a/util/generic/vector.h
+++ b/util/generic/vector.h
@@ -73,7 +73,7 @@ public:
}
inline TVector(TSelf&& src) noexcept
- : TBase(std::forward<TSelf>(src))
+ : TBase(std::forward<TSelf>(src))
{
}
@@ -89,7 +89,7 @@ public:
}
inline TSelf& operator=(TSelf&& src) noexcept {
- TBase::operator=(std::forward<TSelf>(src));
+ TBase::operator=(std::forward<TSelf>(src));
return *this;
}