Dune Core Modules (2.6.0)

Dune::Std::is_invocable_r< R, F, Args > Struct Template Reference

Traits class to check if function is invocable and the return type is compatible. More...

#include <dune/common/std/type_traits.hh>

Detailed Description

template<class R, class F, class... Args>
struct Dune::Std::is_invocable_r< R, F, Args >

Traits class to check if function is invocable and the return type is compatible.

Template Parameters
RDesired result type
FFunction to check
ArgsFunction arguments to check

This checks if F can be called with an arguments list of type Args..., and if the return value can be converted to R. The result is encoded by deriving from std::ingegral_constant<bool, result>.

This implements std::is_invocable_r from C++17.


The documentation for this struct was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 26, 23:30, 2024)