SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SDL::SpanRef< T > Class Template Reference

span-like for empty-derived structs More...

Public Member Functions

template<DerivedWrapper< T > U, size_t N>
constexpr SpanRef (U(&other)[N])
 
template<DerivedWrapper< T > U>
constexpr SpanRef (const std::span< U > &other)
 
template<std::contiguous_iterator It>
requires DerivedWrapper<std::iter_value_t<It>, T>
constexpr SpanRef (It first, size_t count)
 
template<std::contiguous_iterator It, std::sized_sentinel_for< It > End>
requires DerivedWrapper<std::iter_value_t<It>, T>
constexpr SpanRef (It first, End last)
 
template<std::ranges::contiguous_range R>
requires DerivedWrapper<std::iter_value_t<std::ranges::iterator_t<R>>, T>
constexpr SpanRef (R &&range)
 
constexpr size_t size () const
 
constexpr T * data () const
 

Detailed Description

template<class T>
class SDL::SpanRef< T >

This wraps around std::span that works for out derived-wrapper pattern (eg, Rect, Color)


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