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:101

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>())) * = nullptr)
  • 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>()))* =
        nullptr)

Declared at: llvm/include/llvm/ADT/ilist.h:107

Templates

U

Parameters

U* I
decltype(I->getNext(&make<NodeT>()))* = nullptr

template <class>
static llvm::ilist_detail::HasGetNext::No& test(
    ...)

Declared at: llvm/include/llvm/ADT/ilist.h:108

Templates