martinmoene / span-lite

span lite - A C++20-like span for C++98, C++11 and later in a single-file header-only library
Boost Software License 1.0
494 stars 40 forks source link

Specialize span for dynamic extent (optimize static size) #8

Open martinmoene opened 6 years ago

martinmoene commented 6 years ago

From issue #3.

See also libc++ span snippet.

Note remark by Nevin Liber in [isocpp-lib] Another span question, on 24-Apr-18 22:55:

Meta-questions: why are we conflating fixed extents and dynamic extents into the same class template? (shades of vector...) And why did this go directly into C++20 instead of Lib Fundamentals?