![]() |
FancySafeBot 0.0.1
A safe robotics library
|
Non-owning view over a contiguous sequence of elements (C++17 substitute for std::span)
#include <fsb_types.h>

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 |