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

Method sort

Exercises/Modules/Chapter 11/Soln11_03/words.sorting.cpp:14–18  ·  view source on GitHub ↗

Sort strings in ascending sequence

Source from the content-addressed store, hash-verified

12
13// Sort strings in ascending sequence
14void words::sorting::sort(Words& words)
15{
16 if (!words.empty())
17 ::sort(words, 0, words.size() - 1);
18}
19
20void sort(words::Words& words, size_t start, size_t end)
21{

Callers

nothing calls this directly

Calls 3

sortFunction · 0.70
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected