[libc++] [ranges] Simplify our idiom for testing niebloid-ness.
authorArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Wed, 29 Dec 2021 19:35:52 +0000 (14:35 -0500)
committerArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Thu, 6 Jan 2022 19:20:44 +0000 (14:20 -0500)
commit9e35e61aa435708ffe9361f768e8b0568b94bb30
tree64e5020c2ca4114ab2371e22f411dd614604c43f
parentd130df544d6ca922f063a2d72908ea5156fe06e2
[libc++] [ranges] Simplify our idiom for testing niebloid-ness.

In the test files, replace the old-style tests with a simple static_assert,
matching the current style as depicted in e.g.
`ranges_uninitialized_default_construct.pass.cpp`.

Preserve `is_function_like` (but renamed to `is_niebloid`) at
ldionne's request. The removal of this test helper will happen
in D116570 if at all.

Differential Revision: https://reviews.llvm.org/D116384
libcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.advance/special_function.compile.pass.cpp
libcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.next/special_function.compile.pass.cpp
libcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.prev/special_function.compile.pass.cpp
libcxx/test/support/is_niebloid.h [moved from libcxx/test/support/test_standard_function.h with 84% similarity]