mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
Kick-off use of etl algorithms to replace the raw loops in byte_stream
This commit is contained in:
parent
912e22f238
commit
d14f7673c5
@ -177,13 +177,7 @@ namespace etl
|
||||
template <typename T>
|
||||
typename etl::enable_if<etl::is_integral<T>::value || etl::is_floating_point<T>::value, void>::type write_unchecked(const etl::span<T>& range)
|
||||
{
|
||||
typename etl::span<T>::iterator itr = range.begin();
|
||||
|
||||
while (itr != range.end())
|
||||
{
|
||||
to_bytes(*itr);
|
||||
++itr;
|
||||
}
|
||||
etl::for_each(range.cbegin(), range.cend(), [this](T const& t) { to_bytes(t); });
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user