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

struct  IsLayoutCompatible
 
struct  OffsetOf
 
struct  OffsetOf< Pair, typename std::is_standard_layout< Pair >::type >
 
struct  WithConstructedImplF
 

函数

template<class Alloc , class T , class Tuple , size_t... I>
void ConstructFromTupleImpl (Alloc *alloc, T *ptr, Tuple &&t, phmap::index_sequence< I... >)
 
template<class T , class Tuple , size_t... Is, class F >
decltype(std::declval< F >()(std::declval< T >())) WithConstructedImpl (Tuple &&t, phmap::index_sequence< Is... >, F &&f)
 
template<class T , size_t... Is>
auto TupleRefImpl (T &&t, phmap::index_sequence< Is... >) -> decltype(std::forward_as_tuple(std::get< Is >(std::forward< T >(t))...))
 
template<class T >
auto TupleRef (T &&t) -> decltype(TupleRefImpl(std::forward< T >(t), phmap::make_index_sequence< std::tuple_size< typename std::decay< T >::type >::value >()))
 
template<class F , class K , class V >
decltype(std::declval< F >()(std::declval< const K & >(), std::piecewise_construct, std::declval< std::tuple< K > >(), std::declval< V >())) DecomposePairImpl (F &&f, std::pair< std::tuple< K >, V > p)
 

函数说明

◆ ConstructFromTupleImpl()

template<class Alloc , class T , class Tuple , size_t... I>
void phmap::priv::memory_internal::ConstructFromTupleImpl ( Alloc * alloc,
T * ptr,
Tuple && t,
phmap::index_sequence< I... >  )

◆ DecomposePairImpl()

template<class F , class K , class V >
decltype(std::declval< F >()(std::declval< const K & >(), std::piecewise_construct, std::declval< std::tuple< K > >(), std::declval< V >())) phmap::priv::memory_internal::DecomposePairImpl ( F && f,
std::pair< std::tuple< K >, V > p )

◆ TupleRef()

template<class T >
auto phmap::priv::memory_internal::TupleRef ( T && t) -> decltype( TupleRefImpl(std::forward<T>(t), phmap::make_index_sequence< std::tuple_size<typename std::decay<T>::type>::value>()))

◆ TupleRefImpl()

template<class T , size_t... Is>
auto phmap::priv::memory_internal::TupleRefImpl ( T && t,
phmap::index_sequence< Is... >  ) -> decltype(std::forward_as_tuple(std::get<Is>(std::forward<T>(t))...))

◆ WithConstructedImpl()

template<class T , class Tuple , size_t... Is, class F >
decltype(std::declval< F >()(std::declval< T >())) phmap::priv::memory_internal::WithConstructedImpl ( Tuple && t,
phmap::index_sequence< Is... > ,
F && f )