1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #ifndef BOOST_MSM_BACK_BIND_HELPERS_H
- #define BOOST_MSM_BACK_BIND_HELPERS_H
- #include <functional>
- namespace boost { namespace msm { namespace back
- {
-
- template<class _Ty,class _Tz>
- struct plus2
- {
- typedef _Ty first_argument_type;
- typedef _Tz second_argument_type;
- typedef _Ty result_type;
-
- _Ty operator()( _Ty _Left, _Tz _Right) const
- {
-
- return (_Left + _Right);
- }
- };
-
- template <class T>
- struct deref
- {
- typedef T& result_type;
- T& operator()(T* f) const
- {
- return *f;
- }
- };
- } } }
- #endif
|