YSTest
PreAlpha_b500_20140530
The YSLib Test Project
|
算法。 更多...
![]() |
模块 | |
POD Type Operations | |
POD 类型操作。 | |
函数 | |
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<class _tMap > | |
std::pair< typename _tMap::iterator, bool > | ystdex::search_map (_tMap &m, const typename _tMap::key_type &k) |
按指定键值搜索指定映射。 更多... | |
template<class _tString , typename = enable_if_t<is_class<_tString>::value, int>> | |
size_t | ystdex::string_length (const _tString &str) |
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]) |
算法。
字符串算法。
class
表示仅支持类类型对象字符串。
|
inline |
|
inline |
在文件 container.hpp 第 295 行定义.
void ystdex::erase_all | ( | _tRange & | c, |
const typename _tRange::value_type & | val | ||
) |
删除指定序列范围中和指定值的相等的元素。
begin
和 end
指定容器迭代器。 在文件 container.hpp 第 387 行定义.
参考自 YSLib::UI::MLinearUIContainer::operator-=().
void ystdex::erase_all | ( | _tCon & | c, |
_tFwd | first, | ||
_tFwd | last, | ||
const _tValue & | value | ||
) |
删除指定容器中迭代器区间中和指定值的相等的元素。
在文件 container.hpp 第 399 行定义.
参考 ystdex::iterator_transformation::first().
void ystdex::erase_all_if | ( | _tRange & | c, |
_fPred | pred | ||
) |
删除指定序列范围中满足条件的元素。
begin
和 end
指定范围迭代器。 在文件 container.hpp 第 416 行定义.
参考自 ystdex::path< _tSeqCon, _tNorm >::filter_self() , 以及 YReader::ShlTextReader::LoadFile().
void ystdex::erase_all_if | ( | _tCon & | c, |
_tFwd | first, | ||
_tFwd | last, | ||
_fPred | pred | ||
) |
删除指定容器中迭代器区间中满足条件的元素。
在文件 container.hpp 第 428 行定义.
参考 ystdex::iterator_transformation::first().
std::pair<typename _tMap::iterator, bool> ystdex::search_map | ( | _tMap & | m, |
const typename _tMap::key_type & | k | ||
) |
按指定键值搜索指定映射。
在文件 container.hpp 第 475 行定义.
size_t ystdex::string_length | ( | const _tString & | str | ) |
在文件 string.hpp 第 93 行定义.