Boost C++ 库

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

Struct template env_var - Boost C++ 函数库
PrevUpHomeNext

Struct template env_var

boost::proto::functional::env_var — 一个一元 PolymorphicFunctionObject,用于获取转换环境中与特定键关联的值。

提要

// 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