15 typename std::span<T>::size_type n = 1) {
16 assert(in.size() >= n &&
"Dropping more elements than exist");
17 return in.subspan(n, in.size() - n);
23 typename std::span<T>::size_type n = 1) {
24 assert(in.size() >= n &&
"Dropping more elements than exist");
25 return in.subspan(0, in.size() - n);
/file This file defines the SmallVector class.
Definition: AprilTagFieldLayout.h:18
constexpr std::span< T > drop_back(std::span< T > in, typename std::span< T >::size_type n=1)
Drop the last N elements of the array.
Definition: SpanExtras.h:22
constexpr std::span< T > drop_front(std::span< T > in, typename std::span< T >::size_type n=1)
Drop the first N elements of the array.
Definition: SpanExtras.h:14