mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
AK: Conform SimpleIterator to the random access iterator requirements
This requires pulling in some of the STL, but the result is that our
iterator is now STL Approved ™️ and our containers can be
auto-conformed to Swift protocols.
This commit is contained in:
committed by
Andrew Kaster
parent
227ac9973f
commit
756ef2c722
@@ -40,6 +40,11 @@ TEST_CASE(compare_views)
|
||||
EXPECT_EQ(view1, "foo");
|
||||
}
|
||||
|
||||
TEST_CASE(conforms_to_iterator_protocol)
|
||||
{
|
||||
static_assert(std::random_access_iterator<StringView::ConstIterator>);
|
||||
}
|
||||
|
||||
TEST_CASE(string_view_literal_operator)
|
||||
{
|
||||
StringView literal_view = "foo"sv;
|
||||
|
||||
Reference in New Issue
Block a user