Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
SC::SpanWithStride< Type > Struct Template Reference

View over a contiguous sequence of items with a custom stride between elements. More...

#include <HttpConnection.h>

Public Member Functions

constexpr SpanWithStride ()
 Builds an empty SpanWithStride.
 
constexpr SpanWithStride (void *data, size_t sizeInElements, size_t strideInBytes)
 Builds a SpanWithStride from data, size, and stride.
 
template<typename U >
constexpr SpanWithStride (Span< U > span)
 
constexpr size_t sizeInElements () const
 
constexpr bool empty () const
 
template<typename U >
SpanWithStride< U > castTo ()
 
Type & operator[] (size_t idx)
 
const Type & operator[] (size_t idx) const
 

Detailed Description

template<typename Type>
struct SC::SpanWithStride< Type >

View over a contiguous sequence of items with a custom stride between elements.

Constructor & Destructor Documentation

◆ SpanWithStride() [1/2]

template<typename Type >
SC::SpanWithStride< Type >::SpanWithStride ( )
inlineconstexpr

Builds an empty SpanWithStride.

◆ SpanWithStride() [2/2]

template<typename Type >
SC::SpanWithStride< Type >::SpanWithStride ( void * data,
size_t sizeInElements,
size_t strideInBytes )
inlineconstexpr

Builds a SpanWithStride from data, size, and stride.

Parameters
datapointer to the first element
sizeInElementsnumber of elements
strideInBytesstride between elements in bytes

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