LLVM  14.0.0git
Public Types | List of all members
llvm::function_traits< ReturnType(*)(Args...), false > Struct Template Reference

Overload for non-class function types. More...

#include "llvm/ADT/STLExtras.h"

Public Types

enum  { num_args = sizeof...(Args) }
 The number of arguments to this function. More...
 
using result_t = ReturnType
 The result type of this function. More...
 
template<size_t i>
using arg_t = typename std::tuple_element< i, std::tuple< Args... > >::type
 The type of an argument to this function. More...
 

Detailed Description

template<typename ReturnType, typename... Args>
struct llvm::function_traits< ReturnType(*)(Args...), false >

Overload for non-class function types.

Definition at line 131 of file STLExtras.h.

Member Typedef Documentation

◆ arg_t

template<typename ReturnType , typename... Args>
template<size_t i>
using llvm::function_traits< ReturnType(*)(Args...), false >::arg_t = typename std::tuple_element<i, std::tuple<Args...> >::type

The type of an argument to this function.

Definition at line 140 of file STLExtras.h.

◆ result_t

template<typename ReturnType , typename... Args>
using llvm::function_traits< ReturnType(*)(Args...), false >::result_t = ReturnType

The result type of this function.

Definition at line 136 of file STLExtras.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename ReturnType , typename... Args>
anonymous enum

The number of arguments to this function.

Enumerator
num_args 

Definition at line 133 of file STLExtras.h.


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