Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-cpp20
/ max_word_length
Function
max_word_length
Exercises/Modules/Chapter 11/Soln11_02/words.cpp:62–68 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
60
}
61
62
size_t max_word_length(const words::Words& words)
63
{
64
size_t max {};
65
for (auto& pword : words)
66
if (max < pword->length()) max = pword->length();
67
return max;
68
}
69
70
void words::show_words(const Words& words)
71
{
Callers
1
show_words
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected