MCPcopy Create free account
hub / github.com/0voice/cpp_new_features / main

Function main

cpp_20/020_span_back.cpp:6–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <algorithm> // std::copy
5
6int main () {
7 std::vector<int> foo,bar;
8 for (int i=1; i<=5; i++)
9 { foo.push_back(i); bar.push_back(i*10); }
10
11 std::copy (bar.begin(),bar.end(),back_inserter(foo));
12
13 std::cout << "foo contains:";
14 for ( std::vector<int>::iterator it = foo.begin(); it!= foo.end(); ++it )
15 std::cout << ' ' << *it;
16 std::cout << '\n';
17
18 return 0;
19}

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected