diff options
author | somov <somov@yandex-team.ru> | 2022-02-10 16:45:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:49 +0300 |
commit | 7489e4682331202b9c7d863c0898eb83d7b12c2b (patch) | |
tree | 9142afc54d335ea52910662635b898e79e192e49 /library/cpp/cgiparam/cgiparam.h | |
parent | a5950576e397b1909261050b8c7da16db58f10b1 (diff) | |
download | ydb-7489e4682331202b9c7d863c0898eb83d7b12c2b.tar.gz |
Restoring authorship annotation for <somov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/cgiparam/cgiparam.h')
-rw-r--r-- | library/cpp/cgiparam/cgiparam.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/library/cpp/cgiparam/cgiparam.h b/library/cpp/cgiparam/cgiparam.h index 1da4452adf..87d1ab0ad4 100644 --- a/library/cpp/cgiparam/cgiparam.h +++ b/library/cpp/cgiparam/cgiparam.h @@ -87,21 +87,21 @@ public: void InsertEscaped(const TStringBuf name, const TStringBuf value); -#if !defined(__GLIBCXX__) +#if !defined(__GLIBCXX__) template <typename TName, typename TValue> inline void InsertUnescaped(TName&& name, TValue&& value) { - // TStringBuf use as TName or TValue is C++17 actually. - // There is no pair constructor available in C++14 when required type - // is not implicitly constructible from given type. - // But libc++ pair allows this with C++14. + // TStringBuf use as TName or TValue is C++17 actually. + // There is no pair constructor available in C++14 when required type + // is not implicitly constructible from given type. + // But libc++ pair allows this with C++14. emplace(std::forward<TName>(name), std::forward<TValue>(value)); } -#else - template <typename TName, typename TValue> - inline void InsertUnescaped(TName&& name, TValue&& value) { - emplace(TString(name), TString(value)); - } -#endif +#else + template <typename TName, typename TValue> + inline void InsertUnescaped(TName&& name, TValue&& value) { + emplace(TString(name), TString(value)); + } +#endif // replace all values for a given key with new values template <typename TIter> |