diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-08-09 15:30:29 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-08-09 15:43:53 +0300 |
commit | c3665c2967de61ecb4751064a3aa0284ba5f11de (patch) | |
tree | 36528e65fc54e17e56da4865777f1e133b6d64cc /contrib/restricted/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h | |
parent | 7f8d3c45f8e24f0142f6794301386c7e802afe66 (diff) | |
download | ydb-c3665c2967de61ecb4751064a3aa0284ba5f11de.tar.gz |
Intermediate changes
Diffstat (limited to 'contrib/restricted/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h')
-rw-r--r-- | contrib/restricted/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/contrib/restricted/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h b/contrib/restricted/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h index ead6d7c805..b7685f5730 100644 --- a/contrib/restricted/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h +++ b/contrib/restricted/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h @@ -44,6 +44,7 @@ #include <ostream> // NOLINT #include <string> #include <type_traits> +#include <utility> #include <vector> #include "gmock/internal/gmock-port.h" @@ -420,7 +421,7 @@ struct RemoveConstFromKey<std::pair<const K, V> > { GTEST_API_ void IllegalDoDefault(const char* file, int line); template <typename F, typename Tuple, size_t... Idx> -auto ApplyImpl(F&& f, Tuple&& args, IndexSequence<Idx...>) +auto ApplyImpl(F&& f, Tuple&& args, std::index_sequence<Idx...>) -> decltype(std::forward<F>(f)( std::get<Idx>(std::forward<Tuple>(args))...)) { return std::forward<F>(f)(std::get<Idx>(std::forward<Tuple>(args))...); @@ -428,12 +429,13 @@ auto ApplyImpl(F&& f, Tuple&& args, IndexSequence<Idx...>) // Apply the function to a tuple of arguments. template <typename F, typename Tuple> -auto Apply(F&& f, Tuple&& args) -> decltype(ApplyImpl( - std::forward<F>(f), std::forward<Tuple>(args), - MakeIndexSequence<std::tuple_size< - typename std::remove_reference<Tuple>::type>::value>())) { +auto Apply(F&& f, Tuple&& args) + -> decltype(ApplyImpl( + std::forward<F>(f), std::forward<Tuple>(args), + std::make_index_sequence<std::tuple_size< + typename std::remove_reference<Tuple>::type>::value>())) { return ApplyImpl(std::forward<F>(f), std::forward<Tuple>(args), - MakeIndexSequence<std::tuple_size< + std::make_index_sequence<std::tuple_size< typename std::remove_reference<Tuple>::type>::value>()); } |