MCPcopy Create free account
hub / github.com/Apress/beginning-rust-2e / main

Function main

Source Code/13-10.cpp:8–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include <iterator>
7using namespace std;
8int main() {
9 auto arr = array<int, 8> {
10 4, 8, 1, 10, 0, 45, 12, 7 };
11 stable_sort(
12 arr.begin(), arr.end(),
13 [](int a, int b) { return b < a; });
14 copy(
15 arr.begin(),
16 arr.end(),
17 ostream_iterator<int>(cout, ", "));
18}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected