Function object wrapper used by common::weakBind.
More...
#include <WeakBind.hh>
|
using | WeakPtr = boost::weak_ptr< T > |
|
|
| WeakBinder (Func _func, WeakPtr _ptr) |
| Constructor. More...
|
|
template<typename... Args> |
auto | operator() (Args &&... _args) -> typename std::enable_if< !std::is_void< decltype(this->func(std::forward< Args >(_args)...)) >::value, decltype(this->func(std::forward< Args >(_args)...)) >::type |
| Return non-void version. More...
|
|
template<typename... Args> |
auto | operator() (Args &&... _args) -> typename std::enable_if< std::is_void< decltype(this->func(std::forward< Args >(_args)...)) >::value, void >::type |
| Return void version. More...
|
|
template<typename Func, typename T>
class gazebo::common::details::WeakBinder< Func, T >
Function object wrapper used by common::weakBind.
◆ WeakPtr
◆ WeakBinder()
Constructor.
- Parameters
-
[in] | _func | Wrapped function object |
[in] | _ptr | Owning pointer to bind as the first argument of the function object. |
◆ operator()() [1/2]
auto operator() |
( |
Args &&... |
_args | ) |
-> typename std::enable_if<
!std::is_void<
decltype(this->func(std::forward<Args>(_args)...))
>::value,
decltype(this->func(std::forward<Args>(_args)...))
>::type
|
|
inline |
◆ operator()() [2/2]
auto operator() |
( |
Args &&... |
_args | ) |
-> typename std::enable_if<
std::is_void<
decltype(this->func(std::forward<Args>(_args)...))
>::value,
void
>::type
|
|
inline |
The documentation for this class was generated from the following file: