-
-
Notifications
You must be signed in to change notification settings - Fork 392
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
Feature/add back insert iterator #603
Feature/add back insert iterator #603
Conversation
- Mainly a copy of the STL implementation found in LLVM. - Add test_back_insert_iterator unit test.
https://en.cppreference.com/w/cpp/iterator/back_insert_iterator Strictly following the C++ STL would have container_ be container.
The all iterator tags should use the There is also the complementary |
- Make back_insert_iterator available to C++03 - Add ETL_CONSTEXPR17,ETL_NODISCARD and ETL_USING_CPP11 - Replace std:move usage by etl::move - Update doc
4dd67f9
to
5eb8e4f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some questions
Was there a particular reason that you used |
I can not remember the link but I have adapted the source from the std implementation and the |
* Add back_inserter implementation - Mainly a copy of the STL implementation found in LLVM. - Add test_back_insert_iterator unit test. * Add documentation and use ETL_OR_STD macro * Add MIT License in header * Move back_insert_iterator into iterator.h * Remove unused code * Strictly follow the C++ STL naming https://en.cppreference.com/w/cpp/iterator/back_insert_iterator Strictly following the C++ STL would have container_ be container. * Make the check for C++11 clearer * Run the unit test only for C++11 * Add front_insert_iterator - Make back_insert_iterator available to C++03 - Add ETL_CONSTEXPR17,ETL_NODISCARD and ETL_USING_CPP11 - Replace std:move usage by etl::move - Update doc * Use explicit namespace for adressof() and move().
Add
back_insert_iterator
andback_inserter()