Template Class span< T, dynamic_extent >

Class Documentation

template<class T>
class opentelemetry::nostd::span<T, dynamic_extent>

Public Functions

inline span() noexcept
inline span(T *data, size_t count) noexcept
inline span(T *first, T *last) noexcept
template<size_t N>
inline span(T (&array)[N]) noexcept
template<size_t N>
inline span(std::array<T, N> &array) noexcept
template<size_t N>
inline span(const std::array<T, N> &array) noexcept
template<class C, typename std::enable_if<!detail::is_specialized_span_convertible<C>::value && std::is_convertible<typename std::remove_pointer<decltype(nostd::data(std::declval<C&>()))>::type (*)[], T (*)[]>::value && std::is_convertible<decltype(nostd::size(std::declval<const C&>())), size_t>::value>::type* = nullptr>
inline span(C &c) noexcept(noexcept(data(c), size(c)))
template<class C, typename std::enable_if<!detail::is_specialized_span_convertible<C>::value && std::is_convertible<typename std::remove_pointer<decltype(nostd::data(std::declval<const C&>()))>::type (*)[], T (*)[]>::value && std::is_convertible<decltype(nostd::size(std::declval<const C&>())), size_t>::value>::type* = nullptr>
inline span(const C &c) noexcept(noexcept(data(c), size(c)))
template<class U, size_t N, typename std::enable_if<std::is_convertible<U (*)[], T (*)[]>::value>::type* = nullptr>
inline span(const span<U, N> &other) noexcept
span(const span&) noexcept = default
inline bool empty() const noexcept
inline T *data() const noexcept
inline size_t size() const noexcept
inline T &operator[](size_t index) const noexcept
inline T *begin() const noexcept
inline T *end() const noexcept

Public Static Attributes

static constexpr size_t extent = dynamic_extent