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

Class A

tests/RangeForStmtHandler8Test.cpp:3–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include <iostream>
2
3struct A
4{
5 A() = default;
6
7 A& begin()
8 {
9 return *this;
10 }
11
12 const int end()
13 {
14 return v[9];
15 }
16
17 A& operator++()
18 {
19 return *this;
20 }
21
22 int operator*() { return 1; }
23
24 int v[10]{};
25};
26
27bool operator!=(const A&, const int&){ return true; }
28

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected