
boost
天天学IT
向往自由的人
展开
-
boost的函数:all_of、all_of_equal、any_of、any_of_equal、none_of、none_of_equal、one_of、one_of_equal
all_of、all_of_equal、any_of、any_of_equal翻译 2017-03-08 15:59:06 · 454 阅读 · 0 评论 -
boost的函数:is_sorted、is_sorted_until、is_increasing(decreasing)、is_strictly_increasing(decreasing)
is_sorted、is_sorted_until、is_increasing(decreasing)、is_strictly_increasing(decreasing)翻译 2017-03-09 10:43:16 · 778 阅读 · 0 评论 -
boost的函数:is_partitioned
template bool is_partitioned ( InputIterator first, InputIterator last, UnaryPredicate p ){// Run through the part that satisfy the predicate for ( ; first != last; ++first ) if ( !p (翻译 2017-03-09 10:58:29 · 320 阅读 · 0 评论 -
boost的函数:is_permutation
templatebool is_permutation ( ForwardIterator1 first1, ForwardIterator1 last1, ForwardIterator2 first2 );templatebool is_permutation ( ForwardIterator1 first1, ForwardIterator1 last1,翻译 2017-03-09 14:25:23 · 482 阅读 · 0 评论 -
boost的函数:partition_point
template ForwardIterator partition_point ( ForwardIterator first, ForwardIterator last, Predicate p ){ std::size_t dist = std::distance ( first, last ); while ( first != last ) { std翻译 2017-03-09 15:01:45 · 352 阅读 · 0 评论 -
boost函数:clamp、gather、hex、is_palindrome
clamp:template T const & clamp ( T const& val, typename boost::mpl::identity::type const & lo, typename boost::mpl::identity::type const & hi, Pred p ) {// assert ( !p ( hi, lo翻译 2017-03-10 10:59:29 · 696 阅读 · 0 评论 -
boost函数:equal、mismatch
std::equaltemplate class InputIterator1, class InputIterator2>bool equal ( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2);template class InputIterator1, class翻译 2017-03-10 09:59:36 · 422 阅读 · 0 评论