WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
rotated_span.h File Reference
#include <array>
#include <cstddef>
#include <iterator>
#include <span>
#include <type_traits>

Go to the source code of this file.

Classes

class  wpi::rotated_span< T, Extent >
 This is a simple rotated span view. More...
 
class  wpi::rotated_span< T, Extent >::iterator
 

Namespaces

namespace  wpi
 Foonathan namespace.
 

Functions

template<typename Type , size_t ArrayExtent>
 wpi::rotated_span (Type(&)[ArrayExtent]) -> rotated_span< Type, ArrayExtent >
 
template<typename Type , size_t ArrayExtent>
 wpi::rotated_span (std::array< Type, ArrayExtent > &) -> rotated_span< Type, ArrayExtent >
 
template<std::contiguous_iterator It, typename End >
 wpi::rotated_span (It, End) -> rotated_span< std::remove_reference_t< std::iter_reference_t< It > > >
 
template<typename Type , size_t Extent>
rotated_span< const std::byte, Extent==std::dynamic_extent ? std::dynamic_extent :Extent *sizeof(Type)> wpi::as_bytes (rotated_span< Type, Extent > sp) noexcept
 
template<typename Type , size_t Extent>
requires (!std::is_const_v<Type>)
rotated_span< std::byte, Extent==std::dynamic_extent ? std::dynamic_extent :Extent *sizeof(Type)> wpi::as_writable_bytes (rotated_span< Type, Extent > sp) noexcept