Closed DavidWild02 closed 2 months ago
The ETL tries to adhere to STL API conventions to maintain compatibility as much as possible, and so ETL containers like queues and stacks use push()
and not push_back()
. As etl::circular_buffer
is essentially a queue it has a push()
.
A better alternative may be to create an etl::push_inserter()
that calls the container's push()
.
Resolved 20.38.11
this code:
std::copy_n(reinterpret_cast<const std::byte *>(&data), std::back_inserter(binaryBuffer));
does not work, because theetl::circular_buffer
has no memberpush_back(__value)
.It would be nice implementing this. So that the container can be used with functions of the standard library.