struct HasGetNext
Declaration
template <class TraitsT, class NodeT>
struct HasGetNext { /* full declaration omitted */ };
Description
Type trait to check for a traits class that has a getNext member (as a canary for any of the ilist_nextprev_traits API).
Declared at: llvm/include/llvm/ADT/ilist.h:100
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::HasGetNext::Yes & test(U * I, decltype(I->getNext(&make<NodeT>())) * = 0)
- public template <class >static llvm::ilist_detail::HasGetNext::No & test(...)
Methods
¶template <class U>
static llvm::ilist_detail::HasGetNext::Yes& test(
U* I,
decltype(I->getNext(&make<NodeT>()))* = 0)
template <class U>
static llvm::ilist_detail::HasGetNext::Yes& test(
U* I,
decltype(I->getNext(&make<NodeT>()))* = 0)
Declared at: llvm/include/llvm/ADT/ilist.h:106
Templates
- U
Parameters
- U* I
- decltype(I->getNext(&make<NodeT>()))* = 0
¶template <class>
static llvm::ilist_detail::HasGetNext::No& test(
...)
template <class>
static llvm::ilist_detail::HasGetNext::No& test(
...)
Declared at: llvm/include/llvm/ADT/ilist.h:107