mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-26 20:38:45 +08:00
Merge branch 'pull-request/#1024-etl-span-Add-advance(),-copy(),-reinterpret_as()' of https://github.com/ETLCPP/etl into pull-request/#1024-etl-span-Add-advance(),-copy(),-reinterpret_as()
# Conflicts: # include/etl/span.h
This commit is contained in:
commit
2dac573963
@ -458,16 +458,6 @@ namespace etl
|
||||
: etl::span<element_type, etl::dynamic_extent>(pbegin + offset, pbegin + offset + count);
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
/// Moves the pointer to the first element of the span further by a specified number of elements.
|
||||
///\tparam elements Number of elements to move forward
|
||||
//*************************************************************************
|
||||
void advance(size_t elements) ETL_NOEXCEPT
|
||||
{
|
||||
elements = etl::min(elements, size());
|
||||
pbegin += elements;
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
/// Reinterpret the span as a span with different element type.
|
||||
//*************************************************************************
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user