struct HasCreateSentinel

Declaration

template <class TraitsT>
struct HasCreateSentinel { /* full declaration omitted */ };

Description

Type trait to check for a traits class that has a createSentinel member (as a canary for any of the ilist_sentinel_traits API).

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

Templates

TraitsT

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::HasCreateSentinel::Yes & test(U * I, decltype(I->createSentinel()) * = 0)
  • public template <class >static llvm::ilist_detail::HasCreateSentinel::No & test(...)

Methods

template <class U>
static llvm::ilist_detail::HasCreateSentinel::Yes&
test(U* I, decltype(I->createSentinel())* = 0)

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

Templates

U

Parameters

U* I
decltype(I->createSentinel())* = 0

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

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

Templates