NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
phmap::priv::internal_layout 命名空间参考

命名空间

namespace  adl_barrier
 

struct  AlignOf
 
struct  AlignOf< Aligned< T, N > >
 
class  LayoutImpl
 
class  LayoutImpl< std::tuple< Elements... >, phmap::index_sequence< SizeSeq... >, phmap::index_sequence< OffsetSeq... > >
 
struct  NotAligned
 
struct  NotAligned< const Aligned< T, N > >
 
struct  SizeOf
 
struct  SizeOf< Aligned< T, N > >
 
struct  Type
 
struct  Type< Aligned< T, N > >
 

类型定义

template<size_t >
using IntToSize = size_t
 
template<class >
using TypeToSize = size_t
 
template<class T , class... Ts>
using Contains = phmap::disjunction<std::is_same<T, Ts>...>
 
template<class From , class To >
using CopyConst
 
template<class T >
using SliceType = Span<T>
 
template<bool C>
using EnableIf = typename std::enable_if<C, int>::type
 
template<class T >
using IsLegalElementType
 
template<size_t NumSizes, class... Ts>
using LayoutType
 

类型定义说明

◆ Contains

template<class T , class... Ts>
using phmap::priv::internal_layout::Contains = phmap::disjunction<std::is_same<T, Ts>...>

◆ CopyConst

template<class From , class To >
using phmap::priv::internal_layout::CopyConst
初始值:
typename std::conditional<std::is_const<From>::value, const To, To>::type

◆ EnableIf

template<bool C>
using phmap::priv::internal_layout::EnableIf = typename std::enable_if<C, int>::type

◆ IntToSize

template<size_t >
using phmap::priv::internal_layout::IntToSize = size_t

◆ IsLegalElementType

初始值:
std::integral_constant<
bool, !std::is_reference<T>::value && !std::is_volatile<T>::value &&
!std::is_reference<typename Type<T>::type>::value &&
!std::is_volatile<typename Type<T>::type>::value &&
adl_barrier::IsPow2(AlignOf<T>::value)>
unsigned char bool
Definition stdbool.h:25

◆ LayoutType

template<size_t NumSizes, class... Ts>
using phmap::priv::internal_layout::LayoutType
初始值:
LayoutImpl<
phmap::make_index_sequence<adl_barrier::Min(sizeof...(Ts), NumSizes + 1)>>
make_integer_sequence< size_t, N > make_index_sequence
Definition phmap_base.h:966

◆ SliceType

template<class T >
using phmap::priv::internal_layout::SliceType = Span<T>

◆ TypeToSize

template<class >
using phmap::priv::internal_layout::TypeToSize = size_t