LLVM  8.0.1
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
llvm::detail::has_StreamOperator< T > Class Template Reference

#include "llvm/Support/FormatVariadicDetails.h"

Collaboration diagram for llvm::detail::has_StreamOperator< T >:
Collaboration graph
[legend]

Public Types

using ConstRefT = const typename std::decay< T >::type &
 

Static Public Member Functions

template<typename U >
static char test (typename std::enable_if< std::is_same< decltype(std::declval< llvm::raw_ostream &>()<< std::declval< U >()), llvm::raw_ostream &>::value, int *>::type)
 
template<typename U >
static double test (...)
 

Static Public Attributes

static bool const value = (sizeof(test<ConstRefT>(nullptr)) == 1)
 

Detailed Description

template<class T>
class llvm::detail::has_StreamOperator< T >

Definition at line 77 of file FormatVariadicDetails.h.

Member Typedef Documentation

◆ ConstRefT

template<class T >
using llvm::detail::has_StreamOperator< T >::ConstRefT = const typename std::decay<T>::type &

Definition at line 79 of file FormatVariadicDetails.h.

Member Function Documentation

◆ test() [1/2]

template<class T >
template<typename U >
static char llvm::detail::has_StreamOperator< T >::test ( typename std::enable_if< std::is_same< decltype(std::declval< llvm::raw_ostream &>()<< std::declval< U >()), llvm::raw_ostream &>::value, int *>::type  )
static

◆ test() [2/2]

template<class T >
template<typename U >
static double llvm::detail::has_StreamOperator< T >::test (   ...)
static

Member Data Documentation

◆ value

template<class T >
bool const llvm::detail::has_StreamOperator< T >::value = (sizeof(test<ConstRefT>(nullptr)) == 1)
static

Definition at line 90 of file FormatVariadicDetails.h.


The documentation for this class was generated from the following file: