HomeManualTopicsTypesSymbols
std::all_of
tests all items of a collection
Parameters
- collection
- the collection which items to check
- test
- the test function
- argument (default: NONE)
- additional argument that is passed to the test function
Results
None
Description
Returns std::true if all items in the specified collection fullfill the specified criterion.
Example
$persons
hash_table
"Gregory" = 39
"Julia" = 37
"Maria" = 33
"James" = 41
"Sarah" = 38
if
all_of(persons less 40):
println! "true"
:
println! "false"
Output
false
Topic
Collections
See also