diff options
author | marakasov <marakasov@yandex-team.ru> | 2022-02-10 16:49:50 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:50 +0300 |
commit | 359de4829c1d82b06fad5e0ad82470e4e9f27c89 (patch) | |
tree | a58ba6d37e60106215ea04536f6f33d3e2fe4f6f /util | |
parent | d94c2eed82b3c1259ac7320eb28e9731cd990c22 (diff) | |
download | ydb-359de4829c1d82b06fad5e0ad82470e4e9f27c89.tar.gz |
Restoring authorship annotation for <marakasov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util')
-rw-r--r-- | util/generic/algorithm.h | 22 | ||||
-rw-r--r-- | util/stream/pipe.cpp | 18 |
2 files changed, 20 insertions, 20 deletions
diff --git a/util/generic/algorithm.h b/util/generic/algorithm.h index badfb88993..ce414e7e33 100644 --- a/util/generic/algorithm.h +++ b/util/generic/algorithm.h @@ -358,15 +358,15 @@ void EraseNodesIf(C& c, P p) { } } -template <class T1, class T2> -static inline bool Equal(T1 f1, T1 l1, T2 f2) { +template <class T1, class T2> +static inline bool Equal(T1 f1, T1 l1, T2 f2) { return std::equal(f1, l1, f2); -} - -template <class T1, class T2, class P> -static inline bool Equal(T1 f1, T1 l1, T2 f2, P p) { +} + +template <class T1, class T2, class P> +static inline bool Equal(T1 f1, T1 l1, T2 f2, P p) { return std::equal(f1, l1, f2, p); -} +} template <class TI, class TO> static inline TO Copy(TI f, TI l, TO t) { @@ -432,11 +432,11 @@ template <class TI1, class TI2, class TO, class TC> static inline TO SetIntersection(TI1 f1, TI1 l1, TI2 f2, TI2 l2, TO p, TC c) { return std::set_intersection(f1, l1, f2, l2, p, c); } - -template <class I, class T> -static inline void Fill(I f, I l, const T& v) { + +template <class I, class T> +static inline void Fill(I f, I l, const T& v) { std::fill(f, l, v); -} +} template <typename I, typename S, typename T> static inline I FillN(I f, S n, const T& v) { diff --git a/util/stream/pipe.cpp b/util/stream/pipe.cpp index 51be1934a7..b209eb9d6e 100644 --- a/util/stream/pipe.cpp +++ b/util/stream/pipe.cpp @@ -72,16 +72,16 @@ void TPipeOutput::DoWrite(const void* buf, size_t len) { } } -void TPipeOutput::Close() { - int exitStatus = ::pclose(Impl_->Pipe_); +void TPipeOutput::Close() { + int exitStatus = ::pclose(Impl_->Pipe_); Impl_->Pipe_ = nullptr; - if (exitStatus == -1) { - ythrow TSystemError() << "pclose() failed"; - } else if (exitStatus != 0) { - ythrow yexception() << "subprocess exited with non-zero status(" << exitStatus << ")"; - } -} - + if (exitStatus == -1) { + ythrow TSystemError() << "pclose() failed"; + } else if (exitStatus != 0) { + ythrow yexception() << "subprocess exited with non-zero status(" << exitStatus << ")"; + } +} + TPipedBase::TPipedBase(PIPEHANDLE fd) : Handle_(fd) { |