HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TCB_SPAN_NAMESPACE_NAME::detail Namespace Reference

Classes

struct  span_storage
 
struct  span_storage< E, dynamic_extent >
 
struct  is_span
 
struct  is_span< span< T, S > >
 
struct  is_std_array
 
struct  is_std_array< std::array< T, N > >
 
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_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 &&std::is_convertible< remove_pointer_t< decltype(detail::data(std::declval< T >()))>(*)[], E(*)[]>::value >::type >
 
struct  is_complete
 
struct  is_complete< T, decltype(sizeof(T))>
 

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

template<typename T >
using TCB_SPAN_NAMESPACE_NAME::detail::remove_pointer_t = typedef typename std::remove_pointer<T>::type

Definition at line 285 of file UT_Span.h.

template<typename T >
using TCB_SPAN_NAMESPACE_NAME::detail::uncvref_t = typedef typename std::remove_cv<typename std::remove_reference<T>::type>::type

Definition at line 255 of file UT_Span.h.

template<typename... >
using TCB_SPAN_NAMESPACE_NAME::detail::void_t = typedef void

Definition at line 250 of file UT_Span.h.

Function Documentation

template<class C >
constexpr auto TCB_SPAN_NAMESPACE_NAME::detail::data ( C &  c) -> decltype(c.data())

Definition at line 222 of file UT_Span.h.

template<class C >
constexpr auto TCB_SPAN_NAMESPACE_NAME::detail::data ( const C &  c) -> decltype(c.data())

Definition at line 228 of file UT_Span.h.

template<class T , std::size_t N>
constexpr T* TCB_SPAN_NAMESPACE_NAME::detail::data ( T(&)  array[N])
noexcept

Definition at line 234 of file UT_Span.h.

template<class E >
constexpr const E* TCB_SPAN_NAMESPACE_NAME::detail::data ( std::initializer_list< E >  il)
noexcept

Definition at line 240 of file UT_Span.h.

template<class C >
constexpr auto TCB_SPAN_NAMESPACE_NAME::detail::size ( const C &  c) -> decltype(c.size())

Definition at line 210 of file UT_Span.h.

template<class T , std::size_t N>
constexpr std::size_t TCB_SPAN_NAMESPACE_NAME::detail::size ( const   T(&)[N])
noexcept

Definition at line 216 of file UT_Span.h.