纏めるのが思いつかなかった汎用関数 [詳解]
#include <vector>
名前空間 | |
namespace | Kisaragi_Lib |
関数 | |
template<typename VectorType, typename Predicate> | |
static std::vector< VectorType >::iterator | Kisaragi_Lib::RemoveIfErase (std::vector< VectorType > &_vec, const Predicate &_predicate) |
std::vector<T>から特定の条件に一致する要素を削除する関数 RemoveIfした後にEraseするため、高速です | |
template<class T> | |
static bool | Kisaragi_Lib::EpsilonIf (T _val01, T _val02, T _epsilon) |
_valの差が_許容範囲内か調べる | |
template<class T> | |
static bool | Kisaragi_Lib::IsRange (T _val, T _rangeMin, T _rangeMax) |
valが範囲内か調べる | |
纏めるのが思いつかなかった汎用関数