19 #ifndef PLAYRHO_COMMON_SPAN_HPP
20 #define PLAYRHO_COMMON_SPAN_HPP
27 #include <type_traits>
62 m_array{array}, m_size{
size}
67 template <std::
size_t SIZE>
71 template <typename U, typename = std::enable_if_t< !std::is_array<U>::value > >
73 m_array{detail::Data(value)}, m_size{detail::Size(value)} {}
77 m_array{list.begin()}, m_size{list.size()} {}
86 pointer end() const noexcept {
return m_array + m_size; }
94 assert(index < m_size);
95 return m_array[index];
101 assert(index < m_size);
102 return m_array[index];
121 #endif // PLAYRHO_COMMON_SPAN_HPP