[libcxx-commits] [libcxx] [libc++][ranges] `elements_view`: `get()` forward declarations - tests (PR #82323)

Konstantin Varlamov via libcxx-commits libcxx-commits at lists.llvm.org
Mon Apr 1 12:28:13 PDT 2024


================
@@ -58,6 +61,25 @@ TEST_CONSTEXPR_CXX14 bool tests()
         assert(std::get<2>(tempArray(1, 2, 3)) == 3);
     }
 
+#if TEST_STD_VER >= 23
----------------
var-const wrote:

I don't fully understand the intention of these tests, can you please provide more context? I presume `get` is involved in the implementation of `elements`, but it's an implementation detail, and I don't see a direct call to `get` from the test case. The test seems to be testing interactions between `views::elements` and `array`, but that seems to be better suited for the tests related to the elements view, not to array specifically.

https://github.com/llvm/llvm-project/pull/82323


More information about the libcxx-commits mailing list