Changeset 1183 for cpp/common


Ignore:
Timestamp:
10/16/22 14:23:57 (2 years ago)
Author:
Maciej Komosinski
Message:

Cosmetic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/common/nonstd_span.h

    r1179 r1183  
    1313        constexpr span() noexcept
    1414        {
    15                 data_ = NULL; size_ = 0;
     15                data_ = NULL;
     16                size_ = 0;
    1617        }
    1718        constexpr span(ElementType* first, size_t count) noexcept
    1819        {
    19                 data_ = first; size_ = count;
     20                data_ = first;
     21                size_ = count;
    2022        }
    2123        constexpr span(ElementType* first, ElementType* end) noexcept
    2224        {
    23                 data_ = first; size_ = end - first;
     25                data_ = first;
     26                size_ = end - first;
    2427        }
    2528        template<size_t N> constexpr span(ElementType(&arr)[N]) noexcept
    2629        {
    27                 data_ = arr; size_ = N;
     30                data_ = arr;
     31                size_ = N;
    2832        }
    2933
Note: See TracChangeset for help on using the changeset viewer.