YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
YSLib::ExpandMemberFirst< _type, _tRet, _tPara, _tNew > 模板结构体 参考

仿函数:替换非静态成员二元函数的第一个参数。 更多...

#include <yfunc.hpp>

Public 成员函数

yconstfn ExpandMemberFirst (_tRet(_type::*p)(_tPara))
 构造:使用函数指针。
 
yconstfn bool operator== (const ExpandMemberFirst &rhs) const ynothrow
 比较:相等关系。
 
_tRet operator() (_type &o, _tPara arg)
 调用:使用对象引用和参数。
 
_tRet operator() (_tNew &o, _tPara &&arg)
 调用:使用非 _type 类型对象引用和参数。
 

Private 属性

_tRet(_type::* _pm )(_tPara)
 

详细描述

template<class _type, typename _tRet, typename _tPara, class _tNew = _type>
struct YSLib::ExpandMemberFirst< _type, _tRet, _tPara, _tNew >

仿函数:替换非静态成员二元函数的第一个参数。

自从
build 167

在文件 yfunc.hpp149 行定义.

构造及析构函数说明

template<class _type , typename _tRet , typename _tPara , class _tNew = _type>
yconstfn YSLib::ExpandMemberFirst< _type, _tRet, _tPara, _tNew >::ExpandMemberFirst ( _tRet(_type::*)(_tPara)  p)
inline

构造:使用函数指针。

在文件 yfunc.hpp159 行定义.

成员函数说明

template<class _type , typename _tRet , typename _tPara , class _tNew = _type>
_tRet YSLib::ExpandMemberFirst< _type, _tRet, _tPara, _tNew >::operator() ( _type &  o,
_tPara  arg 
)
inline

调用:使用对象引用和参数。

注解
检测空指针。

在文件 yfunc.hpp178 行定义.

参考 YB_LIKELY.

template<class _type , typename _tRet , typename _tPara , class _tNew = _type>
_tRet YSLib::ExpandMemberFirst< _type, _tRet, _tPara, _tNew >::operator() ( _tNew &  o,
_tPara &&  arg 
)
inline

调用:使用非 _type 类型对象引用和参数。

注解
检测空指针;使用 dynamic_cast 测试类型。
自从
build 293

在文件 yfunc.hpp189 行定义.

参考 YB_LIKELY , 以及 yforward.

template<class _type , typename _tRet , typename _tPara , class _tNew = _type>
yconstfn bool YSLib::ExpandMemberFirst< _type, _tRet, _tPara, _tNew >::operator== ( const ExpandMemberFirst< _type, _tRet, _tPara, _tNew > &  rhs) const
inline

比较:相等关系。

自从
build 319

在文件 yfunc.hpp168 行定义.

类成员变量说明

template<class _type , typename _tRet , typename _tPara , class _tNew = _type>
_tRet(_type::* YSLib::ExpandMemberFirst< _type, _tRet, _tPara, _tNew >::_pm)(_tPara)
private

在文件 yfunc.hpp152 行定义.


该结构体的文档由以下文件生成: