struct HasCreateNode
Declaration
template <class TraitsT, class NodeT>
struct HasCreateNode { /* full declaration omitted */ };
Description
Type trait to check for a traits class that has a createNode member. Allocation should be managed in a wrapper class, instead of in ilist_traits.
Declared at: llvm/include/llvm/ADT/ilist.h:130
Templates
- TraitsT
- NodeT
Member Variables
- public static const bool value = sizeof (test<type-parameter-0-0>(nullptr)) == sizeof(char[1])
Method Overview
- public template <class U>static llvm::ilist_detail::HasCreateNode::Yes & test(U * I, decltype(I->createNode(make<NodeT>())) * = 0)
- public template <class >static llvm::ilist_detail::HasCreateNode::No & test(...)
Methods
¶template <class U>
static llvm::ilist_detail::HasCreateNode::Yes&
test(U* I,
decltype(I->createNode(make<NodeT>()))* = 0)
template <class U>
static llvm::ilist_detail::HasCreateNode::Yes&
test(U* I,
decltype(I->createNode(make<NodeT>()))* = 0)
Declared at: llvm/include/llvm/ADT/ilist.h:136
Templates
- U
Parameters
- U* I
- decltype(I->createNode(make<NodeT>()))* = 0
¶template <class>
static llvm::ilist_detail::HasCreateNode::No&
test(...)
template <class>
static llvm::ilist_detail::HasCreateNode::No&
test(...)
Declared at: llvm/include/llvm/ADT/ilist.h:137