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 iterator and const_iterator to etl::ipool #1043

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rolandreichweinbmw
Copy link
Contributor

I have the use case of iterating over allocated chunks in pools. Therefore adding the respective iterators.

typedef typename etl::conditional<is_const, const ipool, ipool>::type pool_type;
typedef typename etl::conditional<is_const, const char* const*, char**>::type pointer_type;

ipool_iterator(const ipool_iterator& other):
Copy link
Contributor

Choose a reason for hiding this comment

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

The style used in the ETL is:-

ipool_iterator(const ipool_iterator& other)
  : p_current(other.p_current)
  , p_pool(other.p_pool)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just pushed an adjustment that fixes it.

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.

2 participants