diff options
author | Nikita Slyusarev <nslus@yandex-team.com> | 2022-02-10 16:46:52 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:52 +0300 |
commit | cd77cecfc03a3eaf87816af28a33067c4f0cdb59 (patch) | |
tree | 1308e0bae862d52e0020d881fe758080437fe389 /util/generic/is_in.h | |
parent | cdae02d225fb5b3afbb28990e79a7ac6c9125327 (diff) | |
download | ydb-cd77cecfc03a3eaf87816af28a33067c4f0cdb59.tar.gz |
Restoring authorship annotation for Nikita Slyusarev <nslus@yandex-team.com>. Commit 1 of 2.
Diffstat (limited to 'util/generic/is_in.h')
-rw-r--r-- | util/generic/is_in.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/generic/is_in.h b/util/generic/is_in.h index 4f175ea5eb..e452d9f96a 100644 --- a/util/generic/is_in.h +++ b/util/generic/is_in.h @@ -3,7 +3,7 @@ #include "typetraits.h" #include <algorithm> -#include <initializer_list> +#include <initializer_list> template <class I, class T> static inline bool IsIn(I f, I l, const T& v); @@ -46,8 +46,8 @@ static inline bool IsIn(const C& c, const T& e) { using namespace NIsInHelper; return TIsInTraits<C, T, TIsAssocCont<C>::value>::IsIn(c, e); } - + template <class T, class U> static inline bool IsIn(std::initializer_list<T> l, const U& e) { return ::IsIn(l.begin(), l.end(), e); -} +} |