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

Function sort

Examples/NoModules/Chapter 08/Ex8_17.cpp:58–62  ·  view source on GitHub ↗

Sort strings in ascending sequence

Source from the content-addressed store, hash-verified

56
57// Sort strings in ascending sequence
58void sort(Words& words)
59{
60 if (!words.empty())
61 sort(words, 0, words.size() - 1);
62}
63
64void sort(Words& words, size_t start, size_t end)
65{

Callers 4

mainFunction · 0.70
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50

Calls 3

swapFunction · 0.70
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected