Struct first
boost::proto::functional::first —
A PolymorphicFunctionObject type that returns
the first element of a std::pair<>.
Synopsis
struct first : proto::callable {
template<typename This, typename Pair>
struct result<This(Pair)> {
typedef typename Pair::first_type type;
};
template<typename This, typename Pair>
struct result<This(Pair &)> {
typedef typename Pair::first_type & type;
};
template<typename This, typename Pair>
struct result<This(Pair const &)> {
typedef typename Pair::first_type const & type;
};
template<typename Pair> typename Pair::first_type & operator()(Pair &) const;
template<typename Pair>
typename Pair::first_type const & operator()(Pair const &) const;
};
Description
Тип PolymorphicFunctionObject, возвращающий первый элемент std::pair<>.
first public member functions
templatetypenametypenamefirst_typeоператор(&ПараПара;конст; |