aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/getopt/small/last_getopt_support.h
diff options
context:
space:
mode:
authoralbert <albert@yandex-team.ru>2022-02-10 16:48:14 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:14 +0300
commit9f25ef3232c288ca664ceee6c376cf64e4349a2e (patch)
treeb192eaf3150845f7302fafd460a972b0439d6fe5 /library/cpp/getopt/small/last_getopt_support.h
parent6a1e535429145ec1ecfbc5f1efd3c95323261fb5 (diff)
downloadydb-9f25ef3232c288ca664ceee6c376cf64e4349a2e.tar.gz
Restoring authorship annotation for <albert@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/getopt/small/last_getopt_support.h')
-rw-r--r--library/cpp/getopt/small/last_getopt_support.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/getopt/small/last_getopt_support.h b/library/cpp/getopt/small/last_getopt_support.h
index 17bed3e614..7d8cdfba55 100644
--- a/library/cpp/getopt/small/last_getopt_support.h
+++ b/library/cpp/getopt/small/last_getopt_support.h
@@ -36,13 +36,13 @@ namespace NLastGetopt {
class THandlerFunctor0
: public IOptHandler {
TpFunc Func_;
-
+
public:
THandlerFunctor0(TpFunc func)
: Func_(func)
{
}
-
+
void HandleOpt(const TOptsParser*) override {
Func_();
}
@@ -54,7 +54,7 @@ namespace NLastGetopt {
TpFunc Func_;
const TpArg Def_;
const bool HasDef_;
-
+
public:
THandlerFunctor1(TpFunc func)
: Func_(func)
@@ -73,7 +73,7 @@ namespace NLastGetopt {
void HandleOpt(const TOptsParser* parser) override;
};
-
+
template <typename TpFunc>
class THandlerFunctor1<TpFunc, const TOptsParser*>
: public IOptHandler {
@@ -84,7 +84,7 @@ namespace NLastGetopt {
: Func_(func)
{
}
-
+
void HandleOpt(const TOptsParser* parser) override {
Func_(parser);
}
@@ -105,7 +105,7 @@ namespace NLastGetopt {
*Target_ = val;
}
};
-
+
template <typename TpTarget, typename TpFunc, typename TpVal = TpTarget>
class TStoreMappedResultFunctor {
private: