SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
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])
 Constructor.
template<DerivedWrapper< T > U>
constexpr SpanRef (const std::span< U > &other)
 Constructor.
template<std::contiguous_iterator It>
constexpr SpanRef (It first, size_t count)
 Constructor.
template<std::contiguous_iterator It, std::sized_sentinel_for< It > End>
constexpr SpanRef (It first, End last)
 Constructor.
template<std::ranges::contiguous_range R>
constexpr SpanRef (R &&range)
 Constructor.
constexpr size_t size () const
 Retrieves contained size.
constexpr size_t size_bytes () const
 Retrieves contained size in bytes.
constexpr T * data () const
 Retrieves contained data.

Detailed Description

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

span-like for empty-derived structs

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: