Skip to content

Commit 228de00

Browse files
author
John Wellbelove
committed
Optimisation of strings
1 parent 155050b commit 228de00

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

include/etl/string_view.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,11 @@ namespace etl
107107
typedef T value_type;
108108
typedef TTraits traits_type;
109109
typedef size_t size_type;
110+
typedef T& reference;
110111
typedef const T& const_reference;
112+
typedef T* pointer;
111113
typedef const T* const_pointer;
114+
typedef const T* iterator;
112115
typedef const T* const_iterator;
113116
typedef ETL_OR_STD::reverse_iterator<const_iterator> const_reverse_iterator;
114117

@@ -363,7 +366,7 @@ namespace etl
363366
{
364367
n = etl::min(count, size() - position);
365368

366-
etl::copy(mbegin + position, mbegin + position + n, destination);
369+
etl::mem_copy(mbegin + position, n, destination);
367370
}
368371

369372
return n;

0 commit comments

Comments
 (0)