src/base/ranges/algorithm_unittest.cc
TEST(RangesTest, DontClashWithPredicateFromInternalInvoke) {
  {
    int input[] = {0, 1, 2};
    ranges::any_of(input, internal::predicate);
  }
  {
    internal::TestPair input[] = {{1, 2}, {3, 4}};
    ranges::any_of(input, base::identity{}, &internal::TestPair::a);
  }
}
// This is a compilation test that checks that using predicates and projections
// from the base::internal namespace in range algorithms doesn't result in
// ambiguous calls to base::invoke.
This is a compilation test that checks that using predicates and projections
from the base::internal namespace in range algorithms doesn't result in
ambiguous calls to base::invoke.
This is a compilation test that checks that using predicates and projections from the base :: internal namespace in range algorithms doesn ' t result in ambiguous calls to base :: invoke .
TEST(RangesTest, DontClashWithPredicateFromInternalInvoke) {
  {
    int input[] = {0, 1, 2};
    ranges::any_of(input, internal::predicate);
  }
  {
    internal::TestPair input[] = {{1, 2}, {3, 4}};
    ranges::any_of(input, base::identity{}, &internal::TestPair::a);
  }
}
TEST ( RangesTest , DontClashWithPredicateFromInternalInvoke ) { { int input [ ] = { 0 , 1 , 2 } ; ranges :: any_of ( input , internal :: predicate ) ; } { internal :: TestPair input [ ] = { { 1 , 2 } , { 3 , 4 } } ; ranges :: any_of ( input , base :: identity { } , & internal :: TestPair :: a ) ; } }
This is a compilation test that checks that using predicates and projections
from the base::internal namespace in range algorithms doesn't result in
ambiguous calls to base::invoke.
This is a compilation test that checks that using predicates and projections from the base :: internal namespace in range algorithms doesn ' t result in ambiguous calls to base :: invoke .