3ds Max C++ API Reference
Loading...
Searching...
No Matches
geo::detail Namespace Reference

Classes

struct  has_size_and_data
 
struct  has_size_and_data< T, void_t< decltype(detail::size(std::declval< T >())), decltype(detail::data(std::declval< T >()))> >
 
struct  is_complete
 
struct  is_complete< T, decltype(sizeof(T))>
 
struct  is_container
 
struct  is_container_element_type_compatible
 
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_span
 
struct  is_span< span< T, S > >
 
struct  is_std_array
 
struct  is_std_array< std::array< T, N > >
 
struct  span_storage
 
struct  span_storage< E, dynamic_extent >
 

Typedefs

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
 

Typedef Documentation

◆ void_t

using void_t = void

◆ uncvref_t

using uncvref_t = typename std::remove_cv<typename std::remove_reference<T>::type>::type

◆ remove_pointer_t

using remove_pointer_t = typename std::remove_pointer<T>::type

Function Documentation

◆ size() [1/2]

constexpr auto size ( const C &  c) -> decltype(c.size())
constexpr
182{
183 return c.size();
184}

◆ size() [2/2]

constexpr std::size_t size ( const   T(&)[N])
constexprnoexcept
188{
189 return N;
190}

◆ data() [1/4]

constexpr auto data ( C &  c) -> decltype(c.data())
constexpr
194{
195 return c.data();
196}

◆ data() [2/4]

constexpr auto data ( const C &  c) -> decltype(c.data())
constexpr
200{
201 return c.data();
202}

◆ data() [3/4]

constexpr T * data ( T(&)  array[N])
constexprnoexcept
206{
207 return array;
208}

◆ data() [4/4]

constexpr const E * data ( std::initializer_list< E >  il)
constexprnoexcept
212{
213 return il.begin();
214}