Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct first

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

Synopsis

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


struct first :  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 first element of a std::pair<>.

first public member functions

  1. template<typename Pair> 
       ( pair) ;

    Returns:

    pair.first

  2. template<typename Pair> 
       ( pair) ;

    Returns:

    pair.first


PrevUpHomeNext