Aleph-w
3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
ah_iterator_header_test.cc
Go to the documentation of this file.
1
#include <
ah-iterator.H
>
2
3
#include <gtest/gtest.h>
4
5
// Regression test for aleph-concepts.md ยง2.1: ah-iterator.H must compile
6
// when included first, on its own. extract_from_stl_container() names
7
// Aleph::DynList in a non-dependent qualified-id, which needs a forward
8
// declaration even though the function body is never instantiated here.
9
10
// AlephRandomAccessItor lives in the global namespace, not Aleph::, because
11
// ah-iterator.H declares it outside the forward-declaration-only `Aleph`
12
// block.
13
struct
NoRandomAccess
{};
14
static_assert
(not
AlephRandomAccessItor<NoRandomAccess>
);
15
16
TEST
(AhIteratorHeaderTest, IsSelfContained)
17
{
18
SUCCEED();
19
}
ah-iterator.H
STL-compatible iterator adapters for Aleph containers.
AlephRandomAccessItor
Detects Aleph iterators that opted in to random-access promotion.
Definition
ah-iterator.H:73
TEST
#define TEST(name)
Definition
disjoint_sparse_table_test.cc:95
NoRandomAccess
Definition
ah_iterator_header_test.cc:13
Tests
ah_iterator_header_test.cc
Generated by
1.9.8