MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / main

Function main

Examples/Modules/Chapter 21/Ex21_04/Ex21_04.cpp:25–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25int main()
26{
27 std::list l{ 'a', 'b', 'c' };
28 std::vector v{ 1, 2, 3, 4, 5 };
29 float a[] { 1.2f, 3.4f, 4.5f };
30
31 std::cout << distanceBetween(cbegin(l), cend(l)) << std::endl;
32 std::cout << distanceBetween(begin(v), end(v)) << std::endl;
33 std::cout << distanceBetween(a, a + std::size(a)) << std::endl;
34}

Callers

nothing calls this directly

Calls 1

distanceBetweenFunction · 0.70

Tested by

no test coverage detected