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

Function main

tests/RangeForStmtHandler3Test.cpp:47–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 null_sentinal_t end() const { return {}; }
46};
47int main() {
48
49 for( char c : str_view<char>{"hello world\n"} )
50 {
51 std::cout << c;
52 }
53
54#if 0
55 auto&& range = str_view<char>{"hello world\n"};
56 using std::begin; using std::end;
57 auto start = range.begin();
58 auto finish = range.end();
59 for( ; start != finish; ++start )
60 {
61 char c=*start;
62 std::cout << c;
63 }
64#endif
65}

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected