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

Method sort

Exercises/Modules/Chapter 11/Soln11_06/words.cpp:33–37  ·  view source on GitHub ↗

Sort strings in ascending sequence

Source from the content-addressed store, hash-verified

31
32// Sort strings in ascending sequence
33void words::sort(Words& words)
34{
35 if (!words.empty())
36 ::sort(words, 0, words.size() - 1);
37}
38
39void sort(words::Words& words, size_t start, size_t end)
40{

Callers

nothing calls this directly

Calls 3

sortFunction · 0.70
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected