Boost C++ 库

……是世界上最受推崇、设计最精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu, C++ Coding Standards

函数模板参数 - Boost C++ 函数库
PrevUpHomeNext

函数模板参数

boost::yap::argument

提要

// In header: <boost/yap/algorithm.hpp>


template<long long I, typename Expr> 
  decltype(auto) argument(Expr && expr, hana::llong< I > i);

描述

返回调用表达式中第 i 个参数表达式。

等价于 get(expr, i + 1)

[Note] 注意

argument() 仅在 Exprexpr_kind::call 表达式时有效。


PrevUpHomeNext