template template constexpr MemSpan::MemSpan()

in code/include/swoc/MemSpan.h [1068:1075]


template <typename T> template <auto N> constexpr MemSpan<T>::MemSpan(T (&a)[N]) : _ptr{a}, _count{N} {
  // Magic for string literals to drop the trailing nul terminator, which is almost always what is expected.
  if constexpr (N > 0 && std::is_same_v<char const, T>) {
    if (a[N - 1] == 0) {
      _count -= 1;
    }
  }
}