Drake
makeFunction.h File Reference
#include <functional>
Include dependency graph for makeFunction.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Drake
 NOTE: The contents of this class are for the most part direct ports of drake/systems/plants//inverseKinBackend.m from Matlab to C++; many methods and variables follow Matlab conventions and are documented in that file.
 

Functions

template<typename... Args, typename ReturnType >
auto make_function (ReturnType(*p)(Args...)) -> std::function< ReturnType(Args...)>
 make_function Note that a completely general make_function implementation is not possible due to ambiguities, but this works for all of the cases in this file Inspired by http://stackoverflow.com/a/21740143/2228557 More...
 
template<typename... Args, typename ReturnType , typename ClassType >
auto make_function (ReturnType(ClassType::*p)(Args...)) -> std::function< ReturnType(ClassType &, Args...)>