FancySafeBot 0.0.1
A safe robotics library
Loading...
Searching...
No Matches
fsb::Span< T > Class Template Reference

Detailed Description

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

Non-owning view over a contiguous sequence of elements (C++17 substitute for std::span)

#include <fsb_types.h>

Collaboration diagram for fsb::Span< T >:
Collaboration graph

Public Member Functions

 Span (T *ptr, size_t len) noexcept
 
T * data () noexcept
 
const T * data () const noexcept
 
size_t size () const noexcept
 
bool empty () const noexcept
 
T & operator[] (size_t ind) noexcept
 
const T & operator[] (size_t ind) const noexcept
 
T * begin () noexcept
 
T * end () noexcept
 
const T * begin () const noexcept
 
const T * end () const noexcept
 
Span< T > active (size_t num, size_t offset=0U) noexcept
 
Span< const T > active (size_t num, size_t offset=0U) const noexcept
 

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