• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ BOOST_RANGE_CONCEPT_ASSERT函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中BOOST_RANGE_CONCEPT_ASSERT函数的典型用法代码示例。如果您正苦于以下问题:C++ BOOST_RANGE_CONCEPT_ASSERT函数的具体用法?C++ BOOST_RANGE_CONCEPT_ASSERT怎么用?C++ BOOST_RANGE_CONCEPT_ASSERT使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了BOOST_RANGE_CONCEPT_ASSERT函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: mismatch

inline std::pair<
    BOOST_DEDUCED_TYPENAME range_iterator<SinglePassRange1>::type,
    BOOST_DEDUCED_TYPENAME range_iterator<const SinglePassRange2>::type >
mismatch(SinglePassRange1& rng1, const SinglePassRange2 & rng2)
{
    BOOST_RANGE_CONCEPT_ASSERT(( SinglePassRangeConcept<SinglePassRange1> ));
    BOOST_RANGE_CONCEPT_ASSERT(( SinglePassRangeConcept<const SinglePassRange2> ));

    return ::boost::range_detail::mismatch_impl(
        ::boost::begin(rng1), ::boost::end(rng1),
        ::boost::begin(rng2), ::boost::end(rng2));
}
开发者ID:00liujj,项目名称:dealii,代码行数:12,代码来源:mismatch.hpp


示例2: transform

 inline OutputIterator
 transform(const SinglePassRange1& rng1,
           const SinglePassRange2& rng2,
           OutputIterator          out,
           BinaryOperation         fun)
 {
     BOOST_RANGE_CONCEPT_ASSERT(( SinglePassRangeConcept<const SinglePassRange1> ));
     BOOST_RANGE_CONCEPT_ASSERT(( SinglePassRangeConcept<const SinglePassRange2> ));
     return pdalboost::range_detail::transform_impl(
                 pdalboost::begin(rng1), pdalboost::end(rng1),
                 pdalboost::begin(rng2), pdalboost::end(rng2),
                 out, fun);
 }
开发者ID:EricAlex,项目名称:PDAL,代码行数:13,代码来源:transform.hpp


示例3: BOOST_CHECK_EQUAL_RANGES

void BOOST_CHECK_EQUAL_RANGES(const RNG1 &arg_rng_1, ///< TODOCUMENT
                              const RNG2 &arg_rng_2  ///< TODOCUMENT
                             ) {
    BOOST_RANGE_CONCEPT_ASSERT(( boost::SinglePassRangeConcept< const RNG1 > ));
    BOOST_RANGE_CONCEPT_ASSERT(( boost::SinglePassRangeConcept< const RNG2 > ));

    BOOST_CHECK_EQUAL_COLLECTIONS(
        common::cbegin( arg_rng_1 ),
        common::cend  ( arg_rng_1 ),
        common::cbegin( arg_rng_2 ),
        common::cend  ( arg_rng_2 )
    );
}
开发者ID:UCLOrengoGroup,项目名称:cath-tools,代码行数:13,代码来源:boost_check_equal_ranges.hpp


示例4: find_end

inline BOOST_DEDUCED_TYPENAME disable_if<
    is_const<ForwardRange1>,
    BOOST_DEDUCED_TYPENAME range_return<ForwardRange1,re>::type
>::type
find_end(ForwardRange1& rng1, const ForwardRange2& rng2, BinaryPredicate pred)
{
    BOOST_RANGE_CONCEPT_ASSERT(( ForwardRangeConcept<ForwardRange1> ));
    BOOST_RANGE_CONCEPT_ASSERT(( ForwardRangeConcept<const ForwardRange2> ));

    return range_return<ForwardRange1,re>::
        pack(std::find_end(pdalboost::begin(rng1), pdalboost::end(rng1),
                           pdalboost::begin(rng2), pdalboost::end(rng2), pred),
             rng1);
}
开发者ID:EricAlex,项目名称:PDAL,代码行数:14,代码来源:find_end.hpp


示例5: search_n

inline BOOST_DEDUCED_TYPENAME range_return<const ForwardRange,re>::type
search_n(const ForwardRange& rng, Integer count, const Value& value,
         BinaryPredicate pred)
{
    BOOST_RANGE_CONCEPT_ASSERT((ForwardRangeConcept<const ForwardRange>));
    BOOST_RANGE_CONCEPT_ASSERT((BinaryPredicateConcept<BinaryPredicate,
        BOOST_DEDUCED_TYPENAME range_value<const ForwardRange>::type,
        const Value&>));
    return range_return<const ForwardRange,re>::
        pack(range_detail::search_n_pred_impl(mars_boost::begin(rng),
                                              mars_boost::end(rng),
                           count, value, pred),
             rng);
}
开发者ID:Iinvictus,项目名称:mars,代码行数:14,代码来源:search_n.hpp


示例6: find_first_of

inline BOOST_DEDUCED_TYPENAME disable_if<
    is_const<SinglePassRange1>,
    BOOST_DEDUCED_TYPENAME range_return<SinglePassRange1,re>::type
>::type
find_first_of(SinglePassRange1& rng1, const ForwardRange2& rng2)
{
    BOOST_RANGE_CONCEPT_ASSERT(( SinglePassRangeConcept<SinglePassRange1> ));
    BOOST_RANGE_CONCEPT_ASSERT(( ForwardRangeConcept<const ForwardRange2> ));

    return range_return<SinglePassRange1,re>::
        pack(std::find_first_of(boost::begin(rng1), boost::end(rng1),
                                boost::begin(rng2), boost::end(rng2)),
             rng1);
}
开发者ID:imos,项目名称:icfpc2015,代码行数:14,代码来源:find_first_of.hpp


示例7: filter

        inline filtered_range<Predicate, ForwardRange>
        filter(ForwardRange& rng, Predicate filter_pred)
        {
            BOOST_RANGE_CONCEPT_ASSERT((ForwardRangeConcept<ForwardRange>));

            return range_detail::filtered_range<Predicate, ForwardRange>( filter_pred, rng );
        }
开发者ID:12307,项目名称:EasyDarwin,代码行数:7,代码来源:filtered.hpp


示例8: fill_n

inline ForwardRange& fill_n(ForwardRange& rng, Size n, const Value& val)
{
    BOOST_RANGE_CONCEPT_ASSERT(( ForwardRangeConcept<ForwardRange> ));
    BOOST_ASSERT( static_cast<Size>(std::distance(boost::begin(rng), boost::end(rng))) >= n );
    std::fill_n(boost::begin(rng), n, val);
    return rng;
}
开发者ID:InstitutoDOr,项目名称:FriendENGINE,代码行数:7,代码来源:fill_n.hpp


示例9: BOOST_RANGE_CONCEPT_ASSERT

 inline adjacent_filtered_range<BinPredicate, ForwardRng, false>
 operator|( ForwardRng& r,
            const adjacent_excl_holder<BinPredicate>& f )
 {
     BOOST_RANGE_CONCEPT_ASSERT((ForwardRangeConcept<ForwardRng>));
     return adjacent_filtered_range<BinPredicate, ForwardRng, false>( f.val, r );
 }
开发者ID:Caraul,项目名称:airgit,代码行数:7,代码来源:adjacent_filtered.hpp


示例10: partial_sort

inline const RandomAccessRange& partial_sort(const RandomAccessRange& rng,
    BOOST_DEDUCED_TYPENAME range_iterator<const RandomAccessRange>::type middle)
{
    BOOST_RANGE_CONCEPT_ASSERT(( RandomAccessRangeConcept<const RandomAccessRange> ));
    std::partial_sort(boost::begin(rng), middle, boost::end(rng));
    return rng;
}
开发者ID:imos,项目名称:icfpc2015,代码行数:7,代码来源:partial_sort.hpp


示例11: adjacent_difference

 inline OutputIterator adjacent_difference ( const SinglePassRange& rng,
                                             OutputIterator result )
 {
     BOOST_RANGE_CONCEPT_ASSERT(( SinglePassRangeConcept<const SinglePassRange> ));
     return std::adjacent_difference( boost::begin(rng), boost::end(rng),
                                      result );
 }
开发者ID:0xDEC0DE8,项目名称:mcsema,代码行数:7,代码来源:numeric.hpp


示例12: remove_erase_if

inline void remove_erase_if( Container& on, Pred pred )
{
    BOOST_RANGE_CONCEPT_ASSERT(( ForwardRangeConcept<Container> ));
    on.erase(
        std::remove_if(boost::begin(on), boost::end(on), pred),
        boost::end(on));
}
开发者ID:PandaPYH,项目名称:boost-svn,代码行数:7,代码来源:erase.hpp


示例13: remove_erase

inline void remove_erase( Container& on, const T& val )
{
    BOOST_RANGE_CONCEPT_ASSERT(( ForwardRangeConcept<Container> ));
    on.erase(
        std::remove(boost::begin(on), boost::end(on), val),
        boost::end(on));
}
开发者ID:PandaPYH,项目名称:boost-svn,代码行数:7,代码来源:erase.hpp


示例14: unique_copy

inline OutputIterator
unique_copy( const SinglePassRange& rng, OutputIterator out_it,
             BinaryPredicate pred )
{
    BOOST_RANGE_CONCEPT_ASSERT(( SinglePassRangeConcept<const SinglePassRange> ));
    return std::unique_copy(boost::begin(rng), boost::end(rng), out_it, pred);
}
开发者ID:3DJ,项目名称:ofxOgre,代码行数:7,代码来源:unique_copy.hpp


示例15: accumulate

    inline Value accumulate(const SinglePassRange& rng, Value init)
    {
        BOOST_RANGE_CONCEPT_ASSERT((
            SinglePassRangeConcept<const SinglePassRange>));

        return std::accumulate(mars_boost::begin(rng), mars_boost::end(rng), init);
    }
开发者ID:Iinvictus,项目名称:mars,代码行数:7,代码来源:numeric.hpp


示例16: nth_element

inline const RandomAccessRange& nth_element(const RandomAccessRange& rng,
    BOOST_DEDUCED_TYPENAME range_iterator<const RandomAccessRange>::type nth)
{
    BOOST_RANGE_CONCEPT_ASSERT(( RandomAccessRangeConcept<const RandomAccessRange> ));
    std::nth_element(boost::begin(rng), nth, boost::end(rng));
    return rng;
}
开发者ID:00liujj,项目名称:dealii,代码行数:7,代码来源:nth_element.hpp


示例17: copy_backward

inline BidirectionalTraversalWriteableIterator
copy_backward(const BidirectionalRange& rng,
              BidirectionalTraversalWriteableIterator out)
{
    BOOST_RANGE_CONCEPT_ASSERT(( BidirectionalRangeConcept<BidirectionalRange> ));
    return std::copy_backward(boost::begin(rng), boost::end(rng), out);
}
开发者ID:InstitutoDOr,项目名称:FriendENGINE,代码行数:7,代码来源:copy_backward.hpp


示例18: rotate

inline ForwardRange& rotate(ForwardRange& rng,
    BOOST_DEDUCED_TYPENAME range_iterator<ForwardRange>::type middle)
{
    BOOST_RANGE_CONCEPT_ASSERT(( ForwardRangeConcept<ForwardRange> ));
    std::rotate(boost::begin(rng), middle, boost::end(rng));
    return rng;
}
开发者ID:InstitutoDOr,项目名称:FriendENGINE,代码行数:7,代码来源:rotate.hpp


示例19: erase

inline Container& erase( Container& on,
      iterator_range<BOOST_DEDUCED_TYPENAME Container::iterator> to_erase )
{
    BOOST_RANGE_CONCEPT_ASSERT(( ForwardRangeConcept<Container> ));
    on.erase( lslboost::begin(to_erase), lslboost::end(to_erase) );
    return on;
}
开发者ID:ALuehmann,项目名称:labstreaminglayer,代码行数:7,代码来源:erase.hpp


示例20: prev_permutation

inline bool prev_permutation(const BidirectionalRange& rng,
                             Compare                   comp_pred)
{
    BOOST_RANGE_CONCEPT_ASSERT(( BidirectionalRangeConcept<const BidirectionalRange> ));
    return std::prev_permutation(boost::begin(rng), boost::end(rng),
                                 comp_pred);
}
开发者ID:00liujj,项目名称:dealii,代码行数:7,代码来源:permutation.hpp



注:本文中的BOOST_RANGE_CONCEPT_ASSERT函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ BOOST_REQUIRE函数代码示例发布时间:2022-05-30
下一篇:
C++ BOOST_PREVENT_MACRO_SUBSTITUTION函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap