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

Method sort

Exercises/Modules/Chapter 11/Soln11_04/words.cpp:25–29  ·  view source on GitHub ↗

Sort strings in ascending sequence

Source from the content-addressed store, hash-verified

23
24// Sort strings in ascending sequence
25void words::sort(Words& words)
26{
27 if (!words.empty())
28 ::sort(words, 0, words.size() - 1);
29}
30
31void sort(words::Words& words, size_t start, size_t end)
32{

Callers

nothing calls this directly

Calls 3

sortFunction · 0.70
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected