YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
functional.hpp 文件参考
#include "utility.hpp"
#include <functional>
#include <tuple>
#include <string>
functional.hpp 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

struct  make_parameter_tuple< typename >
 取参数列表元组。 更多...
 
struct  ystdex::make_parameter_tuple< _tRet(_tParams...)>
 
struct  ystdex::make_parameter_tuple< _tRet(*)(_tParams...)>
 
struct  ystdex::make_parameter_tuple< _tRet(&)(_tParams...)>
 
struct  ystdex::make_parameter_tuple< _tRet(_tClass::*)(_tParams...)>
 
struct  ystdex::make_parameter_tuple< _tRet(_tClass::*)(_tParams...) const >
 
struct  ystdex::make_parameter_tuple< _tRet(_tClass::*)(_tParams...) volatile >
 
struct  ystdex::make_parameter_tuple< _tRet(_tClass::*)(_tParams...) const volatile >
 
struct  return_of< typename >
 取返回类型。 更多...
 
struct  ystdex::return_of< _tResult(_tParams...)>
 
struct  ystdex::return_of< _tResult(*)(_tParams...)>
 
struct  ystdex::return_of< _tResult(&)(_tParams...)>
 
struct  ystdex::return_of< _tResult(_tClass::*)(_tParams...)>
 
struct  ystdex::return_of< _tResult(_tClass::*)(_tParams...) const >
 
struct  ystdex::return_of< _tResult(_tClass::*)(_tParams...) volatile >
 
struct  ystdex::return_of< _tResult(_tClass::*)(_tParams...) const volatile >
 
struct  ystdex::parameter_of< _vIdx, _fCallable >
 取指定索引的参数类型。 更多...
 
struct  ystdex::paramlist_size< _fCallable >
 取参数列表大小。 更多...
 
struct  ystdex::wrapped_traits< _type >
 取 std::reference_wrapper 实例特征。 更多...
 
struct  ystdex::wrapped_traits< std::reference_wrapper< _tWrapped > >
 
struct  ystdex::ref_eq< _type >
 引用相等关系仿函数。 更多...
 
struct  ystdex::xcrease_t< bool, _tScalar >
 编译期选择自增/自减运算仿函数。 更多...
 
struct  ystdex::xcrease_t< false, _tScalar >
 
struct  ystdex::delta_assignment< bool, _tScalar1, _tScalar2 >
 编译期选择加法/减法复合赋值运算仿函数。 更多...
 
struct  ystdex::delta_assignment< false, _tScalar1, _tScalar2 >
 
struct  ystdex::deref_op< _type >
 引用仿函数。 更多...
 
struct  ystdex::const_deref_op< _type >
 const 引用仿函数。 更多...
 
struct  ystdex::deref_comp< _type, _tPointer, _fCompare >
 间接访问比较仿函数。 更多...
 
struct  ystdex::deref_str_comp< _tChar, _fCompare >
 间接访问字符串比较仿函数。 更多...
 

命名空间

namespace  ystdex
 

函数

template<typename... _tParams>
size_t ystdex::sizeof_params (_tParams &&...)
 统计函数参数列表中的参数个数。
 
template<typename _fCallable , typename... _tParams>
void ystdex::unseq_apply (_fCallable &&f, _tParams &&...args)
 无序调用。
 
template<bool _bIsPositive, typename _tScalar >
_tScalar & ystdex::xcrease (_tScalar &_x)
 编译期选择自增/自减运算。
 
template<bool _bIsPositive, typename _tScalar1 , typename _tScalar2 >
_tScalar1 & ystdex::delta_assign (_tScalar1 &_x, _tScalar2 &_y)
 编译期选择加法/减法复合赋值运算。
 
template<typename _fCallable >
void ystdex::seq_apply (_fCallable &&)
 顺序递归调用。
 
template<typename _fCallable , typename _type , typename... _tParams>
void ystdex::seq_apply (_fCallable &&f, _type &&arg, _tParams &&...args)
 
template<typename _type >
_type & ystdex::unref (_type &&x) ynoexcept
 解除引用包装。
 
template<typename _type >
_type & ystdex::unref (const std::reference_wrapper< _type > &x) ynoexcept