Last active
June 30, 2024 14:22
-
-
Save trikitrok/b348dc4d93782faa82c7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool notTooBig(int number); | |
std::vector<int> NumbersFilter::ignoreTooBig(const std::vector<int> & numbers) const { | |
std::vector<int> filteredNumbers; | |
std::copy_if(numbers.begin(), numbers.end(), | |
std::back_inserter(filteredNumbers), | |
notTooBig); | |
return filteredNumbers; | |
} | |
bool notTooBig(int number) { | |
return !(number > 1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment