Skip to content

Commit

Permalink
add more detailed checks for contiguous_iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
m-fila committed Dec 19, 2024
1 parent 4abfadd commit f1f0aeb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unittests/std_interoperability.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,11 @@ TEST_CASE("Collection and unsupported iterator concepts", "[collection][containe
DOCUMENTED_STATIC_FAILURE(std::output_iterator<const_iterator, CollectionType::value_type>);
DOCUMENTED_STATIC_FAILURE(std::output_iterator<const_iterator, CollectionType::mutable_type>);
// std::contiguous_iterator
DOCUMENTED_STATIC_FAILURE(std::is_lvalue_reference_v<iterator::reference>);
DOCUMENTED_STATIC_FAILURE(std::same_as<iterator::value_type, std::remove_cvref_t<iterator::reference>>);
DOCUMENTED_STATIC_FAILURE(std::contiguous_iterator<iterator>);
DOCUMENTED_STATIC_FAILURE(std::is_lvalue_reference_v<const_iterator::reference>);
STATIC_REQUIRE(std::same_as<const_iterator::value_type, std::remove_cvref_t<const_iterator::reference>>);
DOCUMENTED_STATIC_FAILURE(std::contiguous_iterator<const_iterator>);
}
#endif // __cplusplus >= 202002L
Expand Down

0 comments on commit f1f0aeb

Please sign in to comment.