span-like for empty-derived structs
More...
|
|
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>
requires DerivedWrapper<std::iter_value_t<It>, T> |
| constexpr | SpanRef (It first, size_t count) |
| | Constructor.
|
| |
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) |
| | Constructor.
|
| |
template<std::ranges::contiguous_range R>
requires DerivedWrapper<std::iter_value_t<std::ranges::iterator_t<R>>, T> |
| 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.
|
| |
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: