亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ret.hpp

?? Boost provides free peer-reviewed portable C++ source libraries. We emphasize libraries that work
?? HPP
字號:
// Boost Lambda Library  ret.hpp -----------------------------------------// Copyright (C) 1999, 2000 Jaakko Jarvi (jaakko.jarvi@cs.utu.fi)//// Distributed under the Boost Software License, Version 1.0. (See// accompanying file LICENSE_1_0.txt or copy at// http://www.boost.org/LICENSE_1_0.txt)//// For more information, see www.boost.org#ifndef BOOST_LAMBDA_RET_HPP#define BOOST_LAMBDA_RET_HPPnamespace boost { namespace lambda {  // TODO://  Add specializations for function references for ret, protect and unlambda//  e.g void foo(); unlambda(foo); fails, as it would add a const qualifier  // for a function type.   // on the other hand unlambda(*foo) does work// -- ret -------------------------// the explicit return type template   // TODO: It'd be nice to make ret a nop for other than lambda functors  // but causes an ambiguiyty with gcc (not with KCC), check what is the  // right interpretation.  //  // ret for others than lambda functors has no effect  // template <class U, class T>  // inline const T& ret(const T& t) { return t; }template<class RET, class Arg>inline const lambda_functor<  lambda_functor_base<    explicit_return_type_action<RET>,     tuple<lambda_functor<Arg> >  > >ret(const lambda_functor<Arg>& a1){  return      lambda_functor_base<      explicit_return_type_action<RET>,       tuple<lambda_functor<Arg> >    >     (tuple<lambda_functor<Arg> >(a1));}// protect ------------------  // protecting others than lambda functors has no effecttemplate <class T>inline const T& protect(const T& t) { return t; }template<class Arg>inline const lambda_functor<  lambda_functor_base<    protect_action,     tuple<lambda_functor<Arg> >  > >protect(const lambda_functor<Arg>& a1){  return       lambda_functor_base<        protect_action,         tuple<lambda_functor<Arg> >      >     (tuple<lambda_functor<Arg> >(a1));}   // -------------------------------------------------------------------// Hides the lambda functorness of a lambda functor. // After this, the functor is immune to argument substitution, etc.// This can be used, e.g. to make it safe to pass lambda functors as // arguments to functions, which might use them as target functions// note, unlambda and protect are different things. Protect hides the lambda// functor for one application, unlambda for good.template <class LambdaFunctor>class non_lambda_functor{  LambdaFunctor lf;public:    // This functor defines the result_type typedef.  // The result type must be deducible without knowing the arguments  template <class SigArgs> struct sig {    typedef typename       LambdaFunctor::inherited::         template sig<typename SigArgs::tail_type>::type type;  };  explicit non_lambda_functor(const LambdaFunctor& a) : lf(a) {}  typename LambdaFunctor::nullary_return_type    operator()() const {    return lf.template       call<typename LambdaFunctor::nullary_return_type>        (cnull_type(), cnull_type(), cnull_type(), cnull_type());   }  template<class A>  typename sig<tuple<const non_lambda_functor, A&> >::type   operator()(A& a) const {    return lf.template call<typename sig<tuple<const non_lambda_functor, A&> >::type >(a, cnull_type(), cnull_type(), cnull_type());   }  template<class A, class B>  typename sig<tuple<const non_lambda_functor, A&, B&> >::type   operator()(A& a, B& b) const {    return lf.template call<typename sig<tuple<const non_lambda_functor, A&, B&> >::type >(a, b, cnull_type(), cnull_type());   }  template<class A, class B, class C>  typename sig<tuple<const non_lambda_functor, A&, B&, C&> >::type   operator()(A& a, B& b, C& c) const {    return lf.template call<typename sig<tuple<const non_lambda_functor, A&, B&, C&> >::type>(a, b, c, cnull_type());   }};template <class Arg>inline const Arg& unlambda(const Arg& a) { return a; }template <class Arg>inline const non_lambda_functor<lambda_functor<Arg> > unlambda(const lambda_functor<Arg>& a){  return non_lambda_functor<lambda_functor<Arg> >(a);}  // Due to a language restriction, lambda functors cannot be made to  // accept non-const rvalue arguments. Usually iterators do not return   // temporaries, but sometimes they do. That's why a workaround is provided.  // Note, that this potentially breaks const correctness, so be careful!// any lambda functor can be turned into a const_incorrect_lambda_functor// The operator() takes arguments as consts and then casts constness// away. So this breaks const correctness!!! but is a necessary workaround// in some cases due to language limitations.// Note, that this is not a lambda_functor anymore, so it can not be used// as a sub lambda expression.template <class LambdaFunctor>struct const_incorrect_lambda_functor {  LambdaFunctor lf;public:  explicit const_incorrect_lambda_functor(const LambdaFunctor& a) : lf(a) {}  template <class SigArgs> struct sig {    typedef typename      LambdaFunctor::inherited::template         sig<typename SigArgs::tail_type>::type type;  };  // The nullary case is not needed (no arguments, no parameter type problems)  template<class A>  typename sig<tuple<const const_incorrect_lambda_functor, A&> >::type  operator()(const A& a) const {    return lf.template call<typename sig<tuple<const const_incorrect_lambda_functor, A&> >::type >(const_cast<A&>(a), cnull_type(), cnull_type(), cnull_type());  }  template<class A, class B>  typename sig<tuple<const const_incorrect_lambda_functor, A&, B&> >::type  operator()(const A& a, const B& b) const {    return lf.template call<typename sig<tuple<const const_incorrect_lambda_functor, A&, B&> >::type >(const_cast<A&>(a), const_cast<B&>(b), cnull_type(), cnull_type());  }  template<class A, class B, class C>  typename sig<tuple<const const_incorrect_lambda_functor, A&, B&, C&> >::type  operator()(const A& a, const B& b, const C& c) const {    return lf.template call<typename sig<tuple<const const_incorrect_lambda_functor, A&, B&, C&> >::type>(const_cast<A&>(a), const_cast<B&>(b), const_cast<C&>(c), cnull_type());  }};// ------------------------------------------------------------------------// any lambda functor can be turned into a const_parameter_lambda_functor// The operator() takes arguments as const.// This is useful if lambda functors are called with non-const rvalues.// Note, that this is not a lambda_functor anymore, so it can not be used// as a sub lambda expression.template <class LambdaFunctor>struct const_parameter_lambda_functor {  LambdaFunctor lf;public:  explicit const_parameter_lambda_functor(const LambdaFunctor& a) : lf(a) {}  template <class SigArgs> struct sig {    typedef typename      LambdaFunctor::inherited::template         sig<typename SigArgs::tail_type>::type type;  };  // The nullary case is not needed: no arguments, no constness problems.  template<class A>  typename sig<tuple<const const_parameter_lambda_functor, const A&> >::type  operator()(const A& a) const {    return lf.template call<typename sig<tuple<const const_parameter_lambda_functor, const A&> >::type >(a, cnull_type(), cnull_type(), cnull_type());  }  template<class A, class B>  typename sig<tuple<const const_parameter_lambda_functor, const A&, const B&> >::type  operator()(const A& a, const B& b) const {    return lf.template call<typename sig<tuple<const const_parameter_lambda_functor, const A&, const B&> >::type >(a, b, cnull_type(), cnull_type());  }  template<class A, class B, class C>  typename sig<tuple<const const_parameter_lambda_functor, const A&, const B&, const C&>>::type  operator()(const A& a, const B& b, const C& c) const {    return lf.template call<typename sig<tuple<const const_parameter_lambda_functor, const A&, const B&, const C&> >::type>(a, b, c, cnull_type());  }};template <class Arg>inline const const_incorrect_lambda_functor<lambda_functor<Arg> >break_const(const lambda_functor<Arg>& lf){  return const_incorrect_lambda_functor<lambda_functor<Arg> >(lf);}template <class Arg>inline const const_parameter_lambda_functor<lambda_functor<Arg> >const_parameters(const lambda_functor<Arg>& lf){  return const_parameter_lambda_functor<lambda_functor<Arg> >(lf);}// make void ------------------------------------------------// make_void( x ) turns a lambda functor x with some return type y into// another lambda functor, which has a void return type// when called, the original return type is discarded// we use this action. The action class will be called, which means that// the wrapped lambda functor is evaluated, but we just don't do anything// with the result.struct voidifier_action {  template<class Ret, class A> static void apply(A&) {}};template<class Args> struct return_type_N<voidifier_action, Args> {  typedef void type;};template<class Arg1>inline const lambda_functor<  lambda_functor_base<    action<1, voidifier_action>,    tuple<lambda_functor<Arg1> >  > > make_void(const lambda_functor<Arg1>& a1) { return     lambda_functor_base<      action<1, voidifier_action>,      tuple<lambda_functor<Arg1> >    >   (tuple<lambda_functor<Arg1> > (a1));}// for non-lambda functors, make_void does nothing // (the argument gets evaluated immediately)template<class Arg1>inline const lambda_functor<  lambda_functor_base<do_nothing_action, null_type> > make_void(const Arg1& a1) { return     lambda_functor_base<do_nothing_action, null_type>();}// std_functor -----------------------------------------------------//  The STL uses the result_type typedef as the convention to let binders know//  the return type of a function object. //  LL uses the sig template.//  To let LL know that the function object has the result_type typedef //  defined, it can be wrapped with the std_functor function.// Just inherit form the template parameter (the standard functor), // and provide a sig template. So we have a class which is still the// same functor + the sig template.template<class T>struct result_type_to_sig : public T {  template<class Args> struct sig { typedef typename T::result_type type; };  result_type_to_sig(const T& t) : T(t) {}};template<class F>inline result_type_to_sig<F> std_functor(const F& f) { return f; }} // namespace lambda } // namespace boost#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩精品免费观看视频| 欧美三片在线视频观看| 在线播放日韩导航| 国产精品高潮呻吟| 国内精品久久久久影院薰衣草| 欧洲av一区二区嗯嗯嗯啊| 国产日韩av一区| 免费在线观看视频一区| 精品视频色一区| 亚洲免费电影在线| av中文字幕亚洲| 国产亚洲欧美日韩日本| 久久国产综合精品| 欧美一区二区在线观看| 亚洲成人综合在线| 91色九色蝌蚪| 亚洲四区在线观看| 波多野结衣中文一区| 久久免费偷拍视频| 久久精品国产成人一区二区三区| 欧美另类z0zxhd电影| 亚洲国产精品人人做人人爽| 91首页免费视频| 国产精品国产精品国产专区不蜜| 国产99久久久国产精品潘金网站| 26uuu亚洲| 九九**精品视频免费播放| 欧美一区二区三区视频免费| 天涯成人国产亚洲精品一区av| 欧美综合色免费| 一区二区三区日韩精品| 色综合天天视频在线观看| 亚洲欧美综合在线精品| 99久久精品免费精品国产| 国产精品国产三级国产aⅴ原创 | 日韩中文欧美在线| 欧美精品自拍偷拍动漫精品| 亚洲午夜一二三区视频| 欧美性一级生活| 亚洲资源中文字幕| 欧美亚洲综合久久| 亚洲电影一区二区| 在线电影院国产精品| 天堂资源在线中文精品| 欧美日韩国产高清一区二区三区| 午夜av一区二区三区| 91精品免费在线| 美日韩黄色大片| 2020国产精品| 福利一区二区在线| 中文字幕一区二区日韩精品绯色| 97se亚洲国产综合自在线观| 亚洲精品乱码久久久久久久久| 欧美在线色视频| 丝袜美腿亚洲一区| 日韩一区二区三区在线| 精品在线视频一区| 中文在线一区二区| 日本大香伊一区二区三区| 亚洲妇熟xx妇色黄| 日韩精品中文字幕一区二区三区| 韩日av一区二区| 国产精品国产三级国产普通话三级 | 国产精品麻豆欧美日韩ww| 色综合天天综合色综合av| 国产一区二区剧情av在线| 久久精品人人做人人爽人人| 99这里只有久久精品视频| 亚洲一区二区三区不卡国产欧美| 91精品国产综合久久福利软件 | 视频在线观看一区二区三区| 精品理论电影在线观看| 成人免费视频app| 一区二区三区在线观看网站| 91精品中文字幕一区二区三区| 激情小说欧美图片| 综合色中文字幕| 777午夜精品免费视频| 国产成人在线视频网址| 一区二区国产盗摄色噜噜| 精品欧美乱码久久久久久| av一二三不卡影片| 男男gaygay亚洲| 国产精品伦理一区二区| 欧美日韩另类国产亚洲欧美一级| 激情综合色播激情啊| 亚洲免费三区一区二区| 精品久久99ma| 色综合天天性综合| 久久不见久久见免费视频1| 18成人在线视频| 日韩欧美三级在线| 日本久久电影网| 久久精品国产**网站演员| 亚洲欧美日韩综合aⅴ视频| 日韩久久久久久| 在线观看欧美精品| 国产精品亚洲专一区二区三区| 亚洲一区二区三区四区五区黄| 精品国产乱码久久久久久久| 欧美中文字幕一区| 国产 日韩 欧美大片| 日本成人中文字幕在线视频| 中文字幕一区二区三区乱码在线| 欧美成人一区二区| 欧美中文字幕一二三区视频| 国产米奇在线777精品观看| 亚洲综合视频网| 国产免费成人在线视频| 欧美一二三在线| 在线视频一区二区三区| 国产91精品一区二区麻豆网站| 午夜视频一区在线观看| 中文字幕日韩av资源站| 久久综合色天天久久综合图片| 欧美色手机在线观看| 国产福利一区二区| 麻豆一区二区99久久久久| 一区二区欧美视频| 亚洲国产高清在线观看视频| 日韩欧美亚洲一区二区| 欧美日韩精品三区| 91国产视频在线观看| 成人福利视频在线| 国产精品自拍三区| 美日韩一级片在线观看| 天天综合天天做天天综合| 亚洲柠檬福利资源导航| 中文在线资源观看网站视频免费不卡 | 国产精品一级二级三级| 美女一区二区三区| 日日夜夜一区二区| 亚洲第一狼人社区| 一区2区3区在线看| 亚洲伦理在线免费看| 国产精品对白交换视频| 国产精品网站在线观看| 国产欧美一二三区| 久久久久国产免费免费| 精品福利在线导航| 日韩精品一区二区三区在线播放| 在线成人小视频| 欧美色倩网站大全免费| 欧美性受xxxx| 欧美色电影在线| 欧美日韩精品是欧美日韩精品| 欧美在线观看一区二区| 日本二三区不卡| 日本久久电影网| 欧美天堂亚洲电影院在线播放| 一本大道久久精品懂色aⅴ| 91美女在线视频| 在线视频一区二区免费| 欧美在线免费播放| 欧美日韩一区二区三区在线看| 91久久免费观看| 欧美少妇性性性| 欧美日本在线看| 宅男噜噜噜66一区二区66| 欧美一区二区三区四区在线观看| 欧美二区三区的天堂| 日韩欧美国产1| 精品国产三级a在线观看| 久久精品视频免费| 中文字幕 久热精品 视频在线| 一区免费观看视频| 一区二区三区欧美日| 亚洲一区在线观看视频| 天天综合天天综合色| 毛片一区二区三区| 国产一本一道久久香蕉| 高清成人在线观看| 91视频www| 欧美久久久一区| 日韩精品一区二区三区中文不卡 | 国产午夜精品福利| 亚洲欧洲日本在线| 亚洲国产另类av| 麻豆精品在线观看| 国产高清久久久久| 一道本成人在线| 制服丝袜成人动漫| 国产午夜亚洲精品理论片色戒| 国产精品网站在线观看| 亚洲五码中文字幕| 久久不见久久见中文字幕免费| 岛国精品在线观看| 欧洲一区在线观看| 日韩久久久精品| 国产精品美女一区二区| 亚洲午夜久久久久久久久久久| 青青草国产精品亚洲专区无| 国产精品一级在线| 欧日韩精品视频| 久久综合久久综合亚洲| 亚洲图片你懂的| 青青草国产成人av片免费| 国产v日产∨综合v精品视频| 色天天综合色天天久久| 日韩欧美久久久|