ICU4X
International Components for Unicode
Loading...
Searching...
No Matches
diplomat::span< T > Class Template Reference

#include <diplomat_runtime.hpp>

Public Member Functions

constexpr span (T *data, size_t size)
 
template<size_t N>
constexpr span (std::array< typename std::remove_const< T >::type, N > &arr)
 
constexpr T * data () const noexcept
 
constexpr size_t size () const noexcept
 

Constructor & Destructor Documentation

◆ span() [1/2]

template<class T >
constexpr diplomat::span< T >::span ( T *  data,
size_t  size 
)
inlineconstexpr

◆ span() [2/2]

template<class T >
template<size_t N>
constexpr diplomat::span< T >::span ( std::array< typename std::remove_const< T >::type, N > &  arr)
inlineconstexpr

Member Function Documentation

◆ data()

template<class T >
constexpr T * diplomat::span< T >::data ( ) const
inlineconstexprnoexcept

◆ size()

template<class T >
constexpr size_t diplomat::span< T >::size ( ) const
inlineconstexprnoexcept

The documentation for this class was generated from the following file: