Beta

Filter View

Description:

In this Kata you will implement a lazy view into a filtered range.

A range is an object with a begin() and a end() member function returning iterators.

Your algorithm should return only that elements from the range that fulfill a given predicate p. In contrast to the existing standard library function it should do so lazy. This implies that your algorithm should work on infinite ranges as long as not all elements are used.

Further reading:

-The current proposal for standardization of ranges for C++

-The reference implementation

See also

Transform view

Algorithms
Iterators

Similar Kata:

Stats:

CreatedJan 22, 2017
PublishedJan 22, 2017
Warriors Trained222
Total Skips51
Total Code Submissions258
Total Times Completed14
C++ Completions14
Total Stars8
% of votes with a positive feedback rating100% of 10
Total "Very Satisfied" Votes10
Total "Somewhat Satisfied" Votes0
Total "Not Satisfied" Votes0
Total Rank Assessments9
Average Assessed Rank
3 kyu
Highest Assessed Rank
1 kyu
Lowest Assessed Rank
6 kyu
Ad
Contributors
  • sv90 Avatar
Ad