Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added filtering iterators #2594

Merged
merged 1 commit into from
Jun 16, 2023
Merged

Conversation

JohanMabille
Copy link
Member

This PR adds filtering iterators (and bidirectional + random_access iterator base classes), a mechanical tool convenient for the refactoring of the downloader.

libmamba/include/mamba/util/iterator.hpp Outdated Show resolved Hide resolved
libmamba/include/mamba/util/iterator.hpp Show resolved Hide resolved
libmamba/include/mamba/util/iterator.hpp Outdated Show resolved Hide resolved
libmamba/include/mamba/util/iterator.hpp Show resolved Hide resolved
libmamba/include/mamba/util/iterator.hpp Show resolved Hide resolved
libmamba/tests/src/util/test_iterator.cpp Outdated Show resolved Hide resolved
libmamba/tests/src/util/test_iterator.cpp Outdated Show resolved Hide resolved
libmamba/tests/src/util/test_iterator.cpp Outdated Show resolved Hide resolved
libmamba/tests/src/util/test_iterator.cpp Outdated Show resolved Hide resolved
libmamba/tests/src/util/test_iterator.cpp Outdated Show resolved Hide resolved
@JohanMabille JohanMabille force-pushed the iterator branch 2 times, most recently from 635ae1f to 266d8f0 Compare June 16, 2023 08:03

namespace
{
bool greater_than_10(int i)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might also want to test with ca callable object, both cases must work.

@JohanMabille JohanMabille merged commit 9ad65ae into mamba-org:main Jun 16, 2023
20 checks passed
@JohanMabille JohanMabille deleted the iterator branch June 16, 2023 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants