Namespaces | Classes | Typedefs | Functions | Variables
DAI_SPAN_NAMESPACE_NAME Namespace Reference

Namespaces

 detail
 

Classes

class  span
 

Typedefs

using byte = unsigned char
 

Functions

template<typename ElementType , std::size_t Extent>
span< const byte,((Extent==dynamic_extent) ? dynamic_extent :sizeof(ElementType) *Extent)> as_bytes (span< ElementType, Extent > s) noexcept
 
template<class ElementType , size_t Extent, typename std::enable_if<!std::is_const< ElementType >::value, int >::type = 0>
span< byte,((Extent==dynamic_extent) ? dynamic_extent :sizeof(ElementType) *Extent)> as_writable_bytes (span< ElementType, Extent > s) noexcept
 
template<std::size_t N, typename E , std::size_t S>
constexpr auto get (span< E, S > s) -> decltype(s[N])
 
template<typename Container >
constexpr span< const typename Container::value_type > make_span (const Container &cont)
 
template<typename T , std::size_t N>
DAI_SPAN_ARRAY_CONSTEXPR span< const T, N > make_span (const std::array< T, N > &arr) noexcept
 
template<typename Container >
constexpr span< typename std::remove_reference< decltype(*detail::data(std::declval< Container & >)))>::type > make_span (Container &cont)
 
template<typename ElementType , std::size_t Extent>
constexpr span< ElementType, Extent > make_span (span< ElementType, Extent > s) noexcept
 
template<typename T , std::size_t N>
DAI_SPAN_ARRAY_CONSTEXPR span< T, N > make_span (std::array< T, N > &arr) noexcept
 
template<typename T , std::size_t N>
constexpr span< T, N > make_span (T(&arr)[N]) noexcept
 

Variables

constexpr DAI_SPAN_INLINE_VAR std::size_t dynamic_extent = SIZE_MAX
 

Typedef Documentation

◆ byte

using DAI_SPAN_NAMESPACE_NAME::byte = typedef unsigned char

Definition at line 125 of file span.hpp.

Function Documentation

◆ as_bytes()

template<typename ElementType , std::size_t Extent>
span<const byte, ((Extent == dynamic_extent) ? dynamic_extent : sizeof(ElementType) * Extent)> DAI_SPAN_NAMESPACE_NAME::as_bytes ( span< ElementType, Extent >  s)
noexcept

Definition at line 481 of file span.hpp.

◆ as_writable_bytes()

template<class ElementType , size_t Extent, typename std::enable_if<!std::is_const< ElementType >::value, int >::type = 0>
span<byte, ((Extent == dynamic_extent) ? dynamic_extent : sizeof(ElementType) * Extent)> DAI_SPAN_NAMESPACE_NAME::as_writable_bytes ( span< ElementType, Extent >  s)
noexcept

Definition at line 486 of file span.hpp.

◆ get()

template<std::size_t N, typename E , std::size_t S>
constexpr auto DAI_SPAN_NAMESPACE_NAME::get ( span< E, S >  s) -> decltype(s[N])
constexpr

Definition at line 491 of file span.hpp.

◆ make_span() [1/6]

template<typename Container >
constexpr span<const typename Container::value_type> DAI_SPAN_NAMESPACE_NAME::make_span ( const Container &  cont)
constexpr

Definition at line 476 of file span.hpp.

◆ make_span() [2/6]

template<typename T , std::size_t N>
DAI_SPAN_ARRAY_CONSTEXPR span<const T, N> DAI_SPAN_NAMESPACE_NAME::make_span ( const std::array< T, N > &  arr)
noexcept

Definition at line 466 of file span.hpp.

◆ make_span() [3/6]

template<typename Container >
constexpr span<typename std::remove_reference<decltype(*detail::data(std::declval<Container&>)))>::type> DAI_SPAN_NAMESPACE_NAME::make_span ( Container &  cont)
constexpr

Definition at line 471 of file span.hpp.

◆ make_span() [4/6]

template<typename ElementType , std::size_t Extent>
constexpr span<ElementType, Extent> DAI_SPAN_NAMESPACE_NAME::make_span ( span< ElementType, Extent >  s)
constexprnoexcept

Definition at line 451 of file span.hpp.

◆ make_span() [5/6]

template<typename T , std::size_t N>
DAI_SPAN_ARRAY_CONSTEXPR span<T, N> DAI_SPAN_NAMESPACE_NAME::make_span ( std::array< T, N > &  arr)
noexcept

Definition at line 461 of file span.hpp.

◆ make_span() [6/6]

template<typename T , std::size_t N>
constexpr span<T, N> DAI_SPAN_NAMESPACE_NAME::make_span ( T(&)  arr[N])
constexprnoexcept

Definition at line 456 of file span.hpp.

Variable Documentation

◆ dynamic_extent

constexpr DAI_SPAN_INLINE_VAR std::size_t DAI_SPAN_NAMESPACE_NAME::dynamic_extent = SIZE_MAX
constexpr

Definition at line 134 of file span.hpp.



depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:20