24#ifndef _SB_DELEGATE_PTR_FUN_IMPL_H_
25#define _SB_DELEGATE_PTR_FUN_IMPL_H_
41template<
typename ReturnType,
typename ArgType>
46 typedef ReturnType (*FPTR)(ArgType);
49 SbDelegatePtrFunImpl(FPTR f)
55 virtual ReturnType call(ArgType arg)
const {
return m_fPtr(arg); }
58 virtual SbDelegateImpl<ReturnType, ArgType>* clone()
const
60 return new SbDelegatePtrFunImpl(m_fPtr);
64 virtual bool equal(FPTR f)
const