YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
算法。 更多...
![]() |
模块 | |
POD Type Operations | |
POD 类型操作。 | |
函数 | |
template<typename _tContainer > | |
void | ystdex::erase_all (_tContainer &c, const typename _tContainer::value_type &val) |
删除指定序列容器中和指定值的相等的元素。 | |
template<typename _tContainer , typename _tIn , typename _tValue > | |
void | ystdex::erase_all (_tContainer &c, _tIn first, _tIn last, const _tValue &value) |
删除指定容器中迭代器区间中和指定值的相等的元素。 | |
template<typename _tRange , typename _fPredicate > | |
void | ystdex::erase_all_if (_tRange &c, _fPredicate pred) |
删除指定序列范围(包含序列容器及内建数组等)中满足条件的元素。 | |
template<typename _tContainer , typename _tIn , typename _fPredicate > | |
void | ystdex::erase_all_if (_tContainer &c, _tIn first, _tIn last, _fPredicate pred) |
删除指定容器中迭代器区间中满足条件的元素。 | |
template<class _tMap > | |
std::pair< typename _tMap::iterator, bool > | ystdex::search_map (_tMap &m, const typename _tMap::key_type &k) |
按指定键值搜索指定映射。 | |
template<class _tContainer , typename... _tParams> | |
void | ystdex::assign (_tContainer &con, _tParams &&...args) |
插入参数指定的元素到容器。 | |
template<class _tContainer , typename _type , size_t _vN> | |
void | ystdex::assign (_tContainer &con, const _type(&arr)[_vN]) |
算法。
字符串算法。
|
inline |
|
inline |
在文件 container.hpp 第 52 行定义.
void ystdex::erase_all | ( | _tContainer & | c, |
const typename _tContainer::value_type & | val | ||
) |
删除指定序列容器中和指定值的相等的元素。
begin
和 end
指定容器迭代器。 在文件 container.hpp 第 136 行定义.
参考 YSLib::begin() , 以及 YSLib::end().
参考自 YSLib::UI::MUIContainer::operator-=().
void ystdex::erase_all | ( | _tContainer & | c, |
_tIn | first, | ||
_tIn | last, | ||
const _tValue & | value | ||
) |
删除指定容器中迭代器区间中和指定值的相等的元素。
c.end()
。 在文件 container.hpp 第 148 行定义.
参考 ystdex::iterator_transformation::first().
void ystdex::erase_all_if | ( | _tRange & | c, |
_fPredicate | pred | ||
) |
删除指定序列范围(包含序列容器及内建数组等)中满足条件的元素。
begin
和 end
指定范围迭代器。 在文件 container.hpp 第 165 行定义.
参考 YSLib::begin() , 以及 YSLib::end().
参考自 ShlTextReader::LoadFile().
void ystdex::erase_all_if | ( | _tContainer & | c, |
_tIn | first, | ||
_tIn | last, | ||
_fPredicate | pred | ||
) |
删除指定容器中迭代器区间中满足条件的元素。
c.end()
。 在文件 container.hpp 第 177 行定义.
参考 ystdex::iterator_transformation::first().
std::pair<typename _tMap::iterator, bool> ystdex::search_map | ( | _tMap & | m, |
const typename _tMap::key_type & | k | ||
) |
按指定键值搜索指定映射。
在文件 container.hpp 第 197 行定义.
参考自 GetEvent().