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

通用容器操作。 更多...

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

浏览源代码.

class  ystdex::container_adaptor< _tSeqCon >
 容器适配器。 更多...
 
class  ystdex::sequence_container_adaptor< _tSeqCon >
 序列容器适配器。 更多...
 
class  ystdex::container_inserter< _tCon >
 容器插入函数对象。 更多...
 

命名空间

 ystdex
 
 ystdex::details
 

函数

template<typename _tCon , typename... _tParams>
void ystdex::seq_insert (_tCon &c, _tParams &&...args)
 顺序插入值至指定容器。 更多...
 
template<class _tCon , typename _tKey >
bool ystdex::details::exists (const _tCon &con, const _tKey &key, decltype(std::declval< _tCon >().count())=1U)
 
template<class _tCon , typename _tKey >
bool ystdex::details::exists (const _tCon &con, const _tKey &key,...)
 
template<class _tCon , typename _tKey >
bool ystdex::exists (const _tCon &con, const _tKey &key)
 判断指定的容器中存在指定的键。 更多...
 
template<typename _tRange >
void ystdex::erase_all (_tRange &c, const typename _tRange::value_type &val)
 删除指定序列范围中和指定值的相等的元素。 更多...
 
template<typename _tCon , typename _tFwd , typename _tValue >
void ystdex::erase_all (_tCon &c, _tFwd first, _tFwd last, const _tValue &value)
 删除指定容器中迭代器区间中和指定值的相等的元素。 更多...
 
template<typename _tRange , typename _fPred >
void ystdex::erase_all_if (_tRange &c, _fPred pred)
 删除指定序列范围中满足条件的元素。 更多...
 
template<typename _tCon , typename _tFwd , typename _fPred >
void ystdex::erase_all_if (_tCon &c, _tFwd first, _tFwd last, _fPred pred)
 删除指定容器中迭代器区间中满足条件的元素。 更多...
 
template<typename _tRandom >
_tRandom ystdex::sort_unique (_tRandom first, _tRandom last)
 排序指定序列范围,保留不重复元素的区间。 更多...
 
template<class _tCon >
void ystdex::sort_unique (_tCon &c)
 排序指定容器,保留不重复元素。 更多...
 
template<class _tMap >
std::pair< typename
_tMap::iterator, bool > 
ystdex::search_map (_tMap &m, const typename _tMap::key_type &k)
 按指定键值搜索指定映射。 更多...
 
template<typename _type , typename... _tParams>
std::array< _type, sizeof...(_tParams)> ystdex::make_array (_tParams &&...args)
 取指定参数初始化的 std::array 对象。 更多...
 
template<typename _type , typename... _tParams>
std::array< _type, sizeof...(_tParams)> ystdex::forward_as_array (_tParams &&...args)
 取指定参数转移至 std::array 对象。 更多...
 
template<class _tSeqCon >
bool ystdex::operator!= (const container_adaptor< _tSeqCon > &x, const container_adaptor< _tSeqCon > &y)
 满足容器要求。 更多...
 
template<class _tSeqCon >
void ystdex::swap (container_adaptor< _tSeqCon > &x, container_adaptor< _tSeqCon > &y)
 
template<class _tSeqCon >
bool ystdex::operator!= (const sequence_container_adaptor< _tSeqCon > &x, const sequence_container_adaptor< _tSeqCon > &y)
 满足容器要求。 更多...
 
template<class _tSeqCon >
void ystdex::swap (sequence_container_adaptor< _tSeqCon > &x, sequence_container_adaptor< _tSeqCon > &y)
 
template<class _tCon , typename... _tParams>
void ystdex::assign (_tCon &c, _tParams &&...args)
 插入参数指定的元素到容器。 更多...
 
template<class _tCon , typename _type , size_t _vN>
void ystdex::assign (_tCon &c, const _type(&arr)[_vN])
 
template<typename _type , size_t _vN, typename _tSrc >
std::array< _type, _vN > ystdex::to_array (const _tSrc &src)
 取指定参数转换为 std::array 对象。 更多...
 
template<typename _type , size_t _vN>
std::array< _type, _vN > ystdex::to_array (const std::array< _type, _vN > &src)
 
template<typename _type , size_t _vN, typename _tSrcElement >
std::array< _type, _vN > ystdex::to_array (const _tSrcElement(&src)[_vN])
 
template<typename _type , size_t _vN, typename _tSrcElement >
std::array< _type, _vN > ystdex::to_array (_tSrcElement(&&src)[_vN])
 

详细描述

通用容器操作。

版本
r652
作者
FrankHB frank.nosp@m.hb19.nosp@m.89@gm.nosp@m.ail..nosp@m.com
自从
build 338
创建时间:
2012-09-12 01:36:20 +0800
修改时间:
2014-05-23 09:59 +0800
文本编码:
UTF-8
模块名称:
YStandardEx::Container

在文件 container.hpp 中定义.