Boost C++ 库

...世界上最受推崇和设计精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu,《C++ 编码规范

结构体模板 env_var - Boost C++ 函数库
PrevUpHomeNext

结构体模板 env_var

boost::proto::functional::env_var — 一个一元 多态函数对象,用于获取在转换环境中与特定键关联的值。

提要

// In header: <boost/proto/transform/env.hpp>

template<typename Key> 
struct env_var :  proto::callable {
  // member classes/structs/unions
  template<typename Sig> 
  struct result {
    // types
    typedef see-below type;
  };

  // public member functions
  template<typename Env> see-below operator()(Env const &) const;
};

描述

env_var 公有成员函数

  1. template<typename Env> see-below operator()(Env const & e) const;

    此函数行为如下:

    有关更多信息,请参阅 proto::env::operator[]


PrevUpHomeNext