aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorulgen4a <ulgen4a@yandex-team.ru>2022-02-10 16:48:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:08 +0300
commitc4de7efdedc25b49cbea74bd589eecb61b55b60a (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /contrib
parent9ef1bf9e69d369800773d810755391694086d4a4 (diff)
downloadydb-c4de7efdedc25b49cbea74bd589eecb61b55b60a.tar.gz
Restoring authorship annotation for <ulgen4a@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/libs/pire/pire/stub/stl.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/contrib/libs/pire/pire/stub/stl.h b/contrib/libs/pire/pire/stub/stl.h
index 204d5a86d0..98ebd9f7c6 100644
--- a/contrib/libs/pire/pire/stub/stl.h
+++ b/contrib/libs/pire/pire/stub/stl.h
@@ -25,41 +25,41 @@
#include <util/string/reverse.h>
#include <util/string/vector.h>
-namespace Pire {
+namespace Pire {
using ystring = TString;
template<size_t N> using ybitset = std::bitset<N>;
template<typename T1, typename T2> using ypair = std::pair<T1, T2>;
template<typename T> using yauto_ptr = std::auto_ptr<T>;
template<typename Arg1, typename Arg2, typename Result> using ybinary_function = std::binary_function<Arg1, Arg2, Result>;
- template<typename T1, typename T2>
- inline ypair<T1, T2> ymake_pair(T1 v1, T2 v2) {
+ template<typename T1, typename T2>
+ inline ypair<T1, T2> ymake_pair(T1 v1, T2 v2) {
return std::make_pair(v1, v2);
- }
+ }
- template<typename T>
- inline T ymax(T v1, T v2) {
+ template<typename T>
+ inline T ymax(T v1, T v2) {
return std::max(v1, v2);
- }
+ }
- template<typename T>
- inline T ymin(T v1, T v2) {
+ template<typename T>
+ inline T ymin(T v1, T v2) {
return std::min(v1, v2);
- }
+ }
- template<class Iter, class T>
+ template<class Iter, class T>
void Fill(Iter begin, Iter end, T t) { std::fill(begin, end, t); }
- class Error: public yexception {
- public:
- Error(const char* msg) { *this << msg; }
- Error(const ystring& msg) { *this << msg; }
- };
+ class Error: public yexception {
+ public:
+ Error(const char* msg) { *this << msg; }
+ Error(const ystring& msg) { *this << msg; }
+ };
typedef IOutputStream yostream;
typedef IInputStream yistream;
-
- template<class Iter>
+
+ template<class Iter>
ystring Join(Iter begin, Iter end, const ystring& separator) { return JoinStrings(begin, end, separator); }
}