Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct second

boost::proto::functional::second — A PolymorphicFunctionObject type that returns the second element of a std::pair<>.

Synopsis

// In header: <boost/proto/functional/std/utility.hpp>


struct second :  proto::callable {
  // member classes/structs/unions
  template<typename This, typename Pair> 
  struct result<> {
    // types
    typedef  ;
  };
  template<typename This, typename Pair> 
  struct result<> {
    // types
    typedef  ;
  };
  template<typename This, typename Pair> 
  struct result<> {
    // types
    typedef  ;
  };

  // public member functions
  template<typename Pair> 
     () ;
  template<typename Pair> 
     () ;
};

Description

A PolymorphicFunctionObject type that returns the second element of a std::pair<>.

second public member functions

  1. template<typename Pair> 
       ( pair) ;

    Returns:

    pair.second

  2. template<typename Pair> 
       ( pair) ;

    Returns:

    pair.second


PrevUpHomeNext