NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
phmap::priv::node_hash_policy< Reference, Policy > 模板结构体 参考

#include <phmap.h>

Public 类型

using slot_type = typename std::remove_cv< typename std::remove_reference< Reference >::type >::type *
 

静态 Public 成员函数

template<class Alloc , class... Args>
static void construct (Alloc *alloc, slot_type *slot, Args &&... args)
 
template<class Alloc >
static void destroy (Alloc *alloc, slot_type *slot)
 
template<class Alloc >
static void transfer (Alloc *, slot_type *new_slot, slot_type *old_slot)
 
static size_t space_used (const slot_type *slot)
 
static Reference element (slot_type *slot)
 
template<class T , class P = Policy>
static auto value (T *elem) -> decltype(P::value(elem))
 
template<class... Ts, class P = Policy>
static auto apply (Ts &&... ts) -> decltype(P::apply(std::forward< Ts >(ts)...))
 

成员类型定义说明

◆ slot_type

template<class Reference , class Policy >
using phmap::priv::node_hash_policy< Reference, Policy >::slot_type = typename std::remove_cv< typename std::remove_reference<Reference>::type>::type*

成员函数说明

◆ apply()

template<class Reference , class Policy >
template<class... Ts, class P = Policy>
static auto phmap::priv::node_hash_policy< Reference, Policy >::apply ( Ts &&...  ts) -> decltype(P::apply(std::forward<Ts>(ts)...))
inlinestatic

◆ construct()

template<class Reference , class Policy >
template<class Alloc , class... Args>
static void phmap::priv::node_hash_policy< Reference, Policy >::construct ( Alloc *  alloc,
slot_type slot,
Args &&...  args 
)
inlinestatic

◆ destroy()

template<class Reference , class Policy >
template<class Alloc >
static void phmap::priv::node_hash_policy< Reference, Policy >::destroy ( Alloc *  alloc,
slot_type slot 
)
inlinestatic

◆ element()

template<class Reference , class Policy >
static Reference phmap::priv::node_hash_policy< Reference, Policy >::element ( slot_type slot)
inlinestatic

◆ space_used()

template<class Reference , class Policy >
static size_t phmap::priv::node_hash_policy< Reference, Policy >::space_used ( const slot_type slot)
inlinestatic

◆ transfer()

template<class Reference , class Policy >
template<class Alloc >
static void phmap::priv::node_hash_policy< Reference, Policy >::transfer ( Alloc *  ,
slot_type new_slot,
slot_type old_slot 
)
inlinestatic

◆ value()

template<class Reference , class Policy >
template<class T , class P = Policy>
static auto phmap::priv::node_hash_policy< Reference, Policy >::value ( T *  elem) -> decltype(P::value(elem))
inlinestatic

该结构体的文档由以下文件生成: