YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
utility.hpp 文件参考

实用设施。 更多...

#include "type_op.hpp"
#include "cassert.h"
#include <utility>
#include <stdexcept>
utility.hpp 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

class  ystdex::unsupported
 异常:不支持的操作。 更多...
 
class  ystdex::unimplemented
 异常:未实现的操作。 更多...
 
class  ystdex::noncopyable
 不可复制对象:禁止派生类调用默认原型的复制构造函数和复制赋值操作符。 更多...
 
class  ystdex::nonmovable
 
class  ystdex::cloneable
 可动态复制的抽象基类。 更多...
 
struct  ystdex::boxed_value< _type >
 包装类类型的值的对象。 更多...
 
class  ystdex::nifty_counter< _type >
 使用引用计数的静态初始化管理器。 更多...
 
class  ystdex::call_once_init< _type, _tOnceFlag >
 使用 call_once 的静态初始化管理器。 更多...
 

命名空间

 ystdex
 

类型定义

template<typename _type >
using ystdex::classify_value_t = conditional_t< std::is_class< _type >::value, _type, boxed_value< _type >>
 包装非类类型为类类型。 更多...
 

函数

template<typename _type >
decay_t< _type > ystdex::decay_copy (_type &&arg)
 退化复制。 更多...
 
template<typename _type >
qualified_decay< _type >::type ystdex::decay_forward (_type &&arg)
 退化传递。 更多...
 
template<typename _fCallable , typename... _tParams>
void ystdex::call_once (bool &b, _fCallable &&f, _tParams &&...args)
 按标识调用函数,保证调用一次。 更多...
 
template<typename _type , typename , typename... >
_type & ystdex::parameterize_static_object ()
 类型参数化静态对象。 更多...
 
template<typename _type , size_t... >
_type & ystdex::parameterize_static_object ()
 非类型参数化静态对象。 更多...
 
template<typename _tKey , typename... _tKeys, typename _fInit , typename... _tParams>
auto ystdex::get_init (_fInit &&f, _tParams &&...args) -> decltype(f(std::forward< decltype(args)>(args)...))&
 取类型标识和初始化调用指定的对象。 更多...
 
template<size_t... _vKeys, typename _fInit , typename... _tParams>
auto ystdex::get_init (_fInit &&f, _tParams &&...args) -> decltype(f(std::forward< decltype(args)>(args)...))&
 取非类型标识和初始化调用指定的对象。 更多...
 
template<typename _type , size_t _vN>
size_t ystdex::arrlen (_type(&)[_vN])
 计算指定数组类型对象的长度。 更多...
 
template<typename _type , size_t _vN>
size_t ystdex::arrlen (_type(&&)[_vN])
 

详细描述

实用设施。

版本
r1743
作者
FrankHB frank.nosp@m.hb19.nosp@m.89@gm.nosp@m.ail..nosp@m.com
自从
build 189
创建时间:
2010-05-23 06:10:59 +0800
修改时间:
2014-05-23 10:01 +0800
文本编码:
UTF-8
模块名称:
YStandardEx::Utilities

在文件 utility.hpp 中定义.