3ds Max C++ API Reference
Loading...
Searching...
No Matches
geom_span.hpp File Reference
#include <array>
#include <cstddef>
#include <cstdint>
#include <type_traits>

Classes

struct  span_storage< E, S >
 
struct  span_storage< E, dynamic_extent >
 
struct  is_span< typename >
 
struct  is_span< span< T, S > >
 
struct  is_std_array< typename >
 
struct  is_std_array< std::array< T, N > >
 
struct  has_size_and_data< typename, typename >
 
struct  has_size_and_data< T, void_t< decltype(detail::size(std::declval< T >())), decltype(detail::data(std::declval< T >()))> >
 
struct  is_container< C, U >
 
struct  is_container_element_type_compatible< typename, typename, typename >
 
struct  is_container_element_type_compatible< T, E, typename std::enable_if<!std::is_same< typename std::remove_cv< decltype(detail::data(std::declval< T >()))>::type, void >::value >::type >
 
struct  is_complete< typename, typename >
 
struct  is_complete< T, decltype(sizeof(T))>
 
class  span< ElementType, Extent >
 
class  tuple_size< geo::span< ElementType, Extent > >
 
class  tuple_element< I, geo::span< ElementType, Extent > >
 

Namespaces

namespace  geo
 
namespace  geo::detail
 
namespace  std
 

Macros

#define TCB_SPAN_NO_EXCEPTIONS
 
#define TCB_SPAN_NO_CONTRACT_CHECKING
 
#define TCB_SPAN_EXPECT(cond)
 
#define TCB_SPAN_INLINE_VAR
 
#define TCB_SPAN_CONSTEXPR14
 
#define TCB_SPAN_CONSTEXPR_ASSIGN
 
#define TCB_SPAN_CONSTEXPR11   constexpr
 
#define TCB_SPAN_ARRAY_CONSTEXPR
 
#define TCB_SPAN_NODISCARD
 

Typedefs

using byte = unsigned char
 
template<typename... >
using void_t = void
 
template<typename T >
using uncvref_t = typename std::remove_cv< typename std::remove_reference< T >::type >::type
 
template<typename T >
using remove_pointer_t = typename std::remove_pointer< T >::type
 

Functions

template<class C >
constexpr auto size (const C &c) -> decltype(c.size())
 
template<class T , std::size_t N>
constexpr std::size_t size (const T(&)[N]) noexcept
 
template<class C >
constexpr auto data (C &c) -> decltype(c.data())
 
template<class C >
constexpr auto data (const C &c) -> decltype(c.data())
 
template<class T , std::size_t N>
constexpr T * data (T(&array)[N]) noexcept
 
template<class E >
constexpr const E * data (std::initializer_list< E > il) noexcept
 
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>
constexpr span< T, N > make_span (T(&arr)[N]) noexcept
 
template<typename T , std::size_t N>
TCB_SPAN_ARRAY_CONSTEXPR span< T, N > make_span (std::array< T, N > &arr) noexcept
 
template<typename T , std::size_t N>
TCB_SPAN_ARRAY_CONSTEXPR span< const T, N > make_span (const std::array< T, N > &arr) noexcept
 
template<typename Container >
constexpr span< typename Container::value_type > make_span (Container &cont)
 
template<typename Container >
constexpr span< const typename Container::value_type > make_span (const Container &cont)
 
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])
 

Variables

TCB_SPAN_INLINE_VAR constexpr std::size_t dynamic_extent = SIZE_MAX
 

Macro Definition Documentation

◆ TCB_SPAN_NO_EXCEPTIONS

#define TCB_SPAN_NO_EXCEPTIONS

◆ TCB_SPAN_NO_CONTRACT_CHECKING

#define TCB_SPAN_NO_CONTRACT_CHECKING

◆ TCB_SPAN_EXPECT

#define TCB_SPAN_EXPECT (   cond)

◆ TCB_SPAN_INLINE_VAR

#define TCB_SPAN_INLINE_VAR

◆ TCB_SPAN_CONSTEXPR14

#define TCB_SPAN_CONSTEXPR14

◆ TCB_SPAN_CONSTEXPR_ASSIGN

#define TCB_SPAN_CONSTEXPR_ASSIGN

◆ TCB_SPAN_CONSTEXPR11

#define TCB_SPAN_CONSTEXPR11   constexpr

◆ TCB_SPAN_ARRAY_CONSTEXPR

#define TCB_SPAN_ARRAY_CONSTEXPR

◆ TCB_SPAN_NODISCARD

#define TCB_SPAN_NODISCARD