HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
span.h File Reference
#include <array>
#include <cstddef>
#include <initializer_list>
#include <iostream>
#include <stdexcept>
#include <type_traits>
#include <vector>
#include <OpenImageIO/dassert.h>
#include <OpenImageIO/oiioversion.h>
#include <OpenImageIO/platform.h>
+ Include dependency graph for span.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  span< T, Extent >
 
class  span_strided< T, Extent >
 

Typedefs

template<typename T >
using cspan = span< const T >
 cspan<T> is a synonym for a non-mutable span<const T>. More...
 
template<typename T >
using cspan_strided = span_strided< const T >
 cspan_strided<T> is a synonym for a non-mutable span_strided<const T>. More...
 

Functions

template<class T , ptrdiff_t X, class U , ptrdiff_t Y>
OIIO_CONSTEXPR14 bool operator== (span< T, X > l, span< U, Y > r)
 Compare all elements of two spans for equality. More...
 
template<class T , ptrdiff_t X, class U , ptrdiff_t Y>
OIIO_CONSTEXPR14 bool operator!= (span< T, X > l, span< U, Y > r)
 Compare all elements of two spans for inequality. More...
 
template<class T , ptrdiff_t X, class U , ptrdiff_t Y>
OIIO_CONSTEXPR14 bool operator== (span_strided< T, X > l, span_strided< U, Y > r)
 Compare all elements of two spans for equality. More...
 
template<class T , ptrdiff_t X, class U , ptrdiff_t Y>
OIIO_CONSTEXPR14 bool operator!= (span_strided< T, X > l, span_strided< U, Y > r)
 Compare all elements of two spans for inequality. More...
 

Variables

OIIO_NAMESPACE_BEGIN constexpr
ptrdiff_t 
dynamic_extent = -1
 

Typedef Documentation

template<typename T >
using cspan = span<const T>

cspan<T> is a synonym for a non-mutable span<const T>.

Definition at line 186 of file span.h.

template<typename T >
using cspan_strided = span_strided<const T>

cspan_strided<T> is a synonym for a non-mutable span_strided<const T>.

Definition at line 307 of file span.h.

Function Documentation

template<class T , ptrdiff_t X, class U , ptrdiff_t Y>
OIIO_CONSTEXPR14 bool operator!= ( span< T, X >  l,
span< U, Y >  r 
)

Compare all elements of two spans for inequality.

Definition at line 206 of file span.h.

template<class T , ptrdiff_t X, class U , ptrdiff_t Y>
OIIO_CONSTEXPR14 bool operator!= ( span_strided< T, X >  l,
span_strided< U, Y >  r 
)

Compare all elements of two spans for inequality.

Definition at line 325 of file span.h.

template<class T , ptrdiff_t X, class U , ptrdiff_t Y>
OIIO_CONSTEXPR14 bool operator== ( span< T, X >  l,
span< U, Y >  r 
)

Compare all elements of two spans for equality.

Definition at line 192 of file span.h.

template<class T , ptrdiff_t X, class U , ptrdiff_t Y>
OIIO_CONSTEXPR14 bool operator== ( span_strided< T, X >  l,
span_strided< U, Y >  r 
)

Compare all elements of two spans for equality.

Definition at line 313 of file span.h.

Variable Documentation

OIIO_NAMESPACE_BEGIN constexpr ptrdiff_t dynamic_extent = -1

Definition at line 25 of file span.h.