2
3
4
5
6
7
8
9
10
11
12
13
14
15
17#ifndef MIRAL_LAMBDA_AS_FUNCTION_H
18#define MIRAL_LAMBDA_AS_FUNCTION_H
26template <
class F>
struct FunctionType;
28template<
typename Lambda,
typename Return,
typename... Arg>
29struct FunctionType<Return (Lambda::*)(Arg...)> {
using type = std::function<Return(Arg...)>; };
31template<
typename Lambda,
typename Return,
typename... Arg>
32struct FunctionType<Return (Lambda::*)(Arg...)
const> {
using type = std::function<Return(Arg...)>; };
35template<
typename Lambda>
38 return typename detail::FunctionType<
decltype(&Lambda::operator())>::type(std::forward<Lambda>(lambda));
Definition: window_specification.h:38
Mir Abstraction Layer.
Definition: runner.h:35
auto lambda_as_function(Lambda &&lambda) -> typename detail::FunctionType< decltype(&Lambda::operator())>::type
Definition: lambda_as_function.h:36