MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / B

Class B

tests/RangeForStmtHandlerTest.cpp:17–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
16
17struct B
18{
19 B()
20 {
21 int i = 0;
22 std::generate(&v[0], &v[10], [&i]() { return ++i; });
23 }
24
25
26 bool operator!=(const B& rhs){
27 return this != &rhs;
28 }
29
30
31 int* begin()
32 {
33 return &v[0];
34 }
35
36 int* end()
37 {
38 return &v[10];
39 }
40
41
42 int v[10];
43};
44
45int* begin(A& v)
46{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected