Changeset 1183 for cpp/common
- Timestamp:
- 10/16/22 14:23:57 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/nonstd_span.h
r1179 r1183 13 13 constexpr span() noexcept 14 14 { 15 data_ = NULL; size_ = 0; 15 data_ = NULL; 16 size_ = 0; 16 17 } 17 18 constexpr span(ElementType* first, size_t count) noexcept 18 19 { 19 data_ = first; size_ = count; 20 data_ = first; 21 size_ = count; 20 22 } 21 23 constexpr span(ElementType* first, ElementType* end) noexcept 22 24 { 23 data_ = first; size_ = end - first; 25 data_ = first; 26 size_ = end - first; 24 27 } 25 28 template<size_t N> constexpr span(ElementType(&arr)[N]) noexcept 26 29 { 27 data_ = arr; size_ = N; 30 data_ = arr; 31 size_ = N; 28 32 } 29 33
Note: See TracChangeset
for help on using the changeset viewer.