Skip to content

Commit 54e2d92

Browse files
committed
Span: Improve consistency with standard.
This commit aims to make Span implementation more in line with what is present in N4762: - use appropiate index types where applicable. - use typedefed type inside the class (index_type, reference, pointer, element_type) - assertion where applicable - restrict default construction to Span with extent == 0 or extent == dynamic. - construct span from a range of pointer - remove non const overload of the subscript operator - remove non const overload of the data function - implement subspan function - implement missing first and last function of dynamic span
1 parent 3985fb8 commit 54e2d92

File tree

1 file changed

+346
-129
lines changed

1 file changed

+346
-129
lines changed

0 commit comments

Comments
 (0)