RADPx-OS Kernel (Radical Posix OS)  Crimson 0.1.4
POSIX-inspired kernel API with embedded and desktop VM targets
rad::Span< T > Class Template Reference

Non-owning contiguous span used by lightweight C++ integrations. More...

#include <rad_cpp.h>

Public Member Functions

constexpr Span ()=default
 Create an empty span.
 
constexpr Span (T *data, size_t size)
 Create a span over data and size elements.
 
constexpr T * data () const
 Return the first element pointer, or nullptr for an empty span.
 
constexpr size_t size () const
 Return the number of elements in the span.
 
constexpr bool empty () const
 Return true when the span has no elements.
 
constexpr T & operator[] (size_t index) const
 Return the element at index without bounds checks.
 
constexpr T * begin () const
 Return an iterator pointer to the first element.
 
constexpr T * end () const
 Return an iterator pointer one past the final element.
 

Detailed Description

template<typename T>
class rad::Span< T >

Non-owning contiguous span used by lightweight C++ integrations.


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