Struct distance
boost::proto::functional::distance — A PolymorphicFunctionObject type that invokes the
std::distance() function on its arguments.
Synopsis
struct distance : proto::callable {
template<typename This, typename InputIterator>
struct result<This(InputIterator, InputIterator)> {
typedef typename std::iterator_traits<
typename boost::remove_const<
typename boost::remove_reference<InputIterator>::type
>::type
>::difference_type type;
};
template<typename InputIterator>
void operator()(InputIterator, InputIterator) const;
};
Description
Полиморфная функция Объекттип, который вызывает функцию<std::distance()>на своих аргументах.
distance public member functions
- <
template<typenameInputIterator>
voidoperator()(InputIteratorfirst,InputIteratorlast)const;
>Возвращение: | <std::distance(first, last)> |