mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-16 17:06:05 +08:00
Merge branch 'feature/#1100-Optimise-string-class-initialisation-from-C-data' into development
This commit is contained in:
commit
aa085ca65b
@ -107,8 +107,11 @@ namespace etl
|
||||
typedef T value_type;
|
||||
typedef TTraits traits_type;
|
||||
typedef size_t size_type;
|
||||
typedef T& reference;
|
||||
typedef const T& const_reference;
|
||||
typedef T* pointer;
|
||||
typedef const T* const_pointer;
|
||||
typedef const T* iterator;
|
||||
typedef const T* const_iterator;
|
||||
typedef ETL_OR_STD::reverse_iterator<const_iterator> const_reverse_iterator;
|
||||
|
||||
@ -363,7 +366,7 @@ namespace etl
|
||||
{
|
||||
n = etl::min(count, size() - position);
|
||||
|
||||
etl::copy(mbegin + position, mbegin + position + n, destination);
|
||||
etl::mem_copy(mbegin + position, n, destination);
|
||||
}
|
||||
|
||||
return n;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user