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

Function main

Examples/Modules/Chapter 21/Ex21_01/Ex21_01.cpp:9–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7class MyClass { /* just a dummy class */ };
8
9int main()
10{
11 std::vector<int&> v;
12
13 MyClass one, other;
14 auto biggest{ std::max(one, other) };
15
16 std::set<MyClass> objects;
17 objects.insert(MyClass{});
18
19 std::list numbers{ 4, 1, 3, 2 };
20 std::sort(begin(numbers), end(numbers));
21}

Callers

nothing calls this directly

Calls 1

sortFunction · 0.50

Tested by

no test coverage detected