Templa 0.0.1-alpha
C++ Metaprogramming Utilities
Loading...
Searching...
No Matches
templa::traits::function_traits< F > Struct Template Reference

Primary template for function traits. Specialization used to extract traits from functor types (e.g., lambdas). More...

#include <traits.hpp>

Inheritance diagram for templa::traits::function_traits< F >:
templa::traits::function_traits< F & > templa::traits::function_traits< F && >

Classes

struct  argument
 Retrieves the type of the N-th argument. More...

Public Types

using return_type = typename call_type::return_type
 The return type of the function.

Static Public Attributes

static constexpr std::size_t arity = call_type::arity - 1
 The number of arguments (excluding the implicit object parameter).

Detailed Description

template<class F>
struct templa::traits::function_traits< F >

Primary template for function traits. Specialization used to extract traits from functor types (e.g., lambdas).

Template Parameters
FFunctor type (i.e., any type with operator()).

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