etl icon indicating copy to clipboard operation
etl copied to clipboard

Feature/add back insert iterator

Open evantill opened this issue 3 years ago • 1 comments

Add back_insert_iterator and back_inserter()

evantill avatar Sep 14 '22 16:09 evantill

The all iterator tags should use the ETL_OR_STD namespace. I think there should be also be a matching etl::back_inserter defined.

There is also the complementary front_insert_iterator & etl::front_inserter in the STL.

jwellbelove avatar Sep 16 '22 21:09 jwellbelove

Was there a particular reason that you used ETL_CONSTEXPR17 instead of ETL_CONSTEXPR14?

jwellbelove avatar Oct 04 '22 14:10 jwellbelove

Was there a particular reason that you used ETL_CONSTEXPR17 instead of ETL_CONSTEXPR14?

I can not remember the link but I have adapted the source from the std implementation and the constexpr was added since C++17.

evantill avatar Oct 06 '22 10:10 evantill