intrig / ict

Intrig C++ Toolkit
MIT License
5 stars 4 forks source link

Implement ict::find_n #5

Open intrig opened 9 years ago

intrig commented 9 years ago

Currently, ict::find() returns the first item it finds. Implement:

template <typename Cursor>
std::vector<Cursor> find_n(Cursor parent, const path & path, 
     size_t max = std::numeric_limits<size_t>::max())

This wil return all matching items, up to max.

wythe commented 8 years ago

This should be for_each() with a lambda for matching. It is similar to recurse(). Need to revisit this later.