TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
triqs::utility::callable_traits< F >

#include <triqs/utility/callable_traits.hpp>

Detailed Description

template<typename F>
struct triqs::utility::callable_traits< F >

Type trait for a callable type with a single, non-overloaded operator().

Provides the following (static, constexpr) members:

  • arity: Number of arguments the call operator takes (including defaulted arguments).
  • result_type: Return type of the call operator.
  • arg_t<N>: Type of the N-th argument.
  • decay_arg_t<N>: std::decay_t applied to arg_t<N>.

The operator() of F must have exactly one overload. Ambiguous callables are not supported.

Template Parameters
FCallable type.

Definition at line 63 of file callable_traits.hpp.


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