Subject: Re: [boost] [type_traits] Interest in is_iterator type trait?
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2014-08-20 08:22:23
On 19/08/14 15:17, Beman Dawes wrote:
> Back in 2011, Howard Hinnant and I put together an is_iterator type trait
> based on code Howard had developed and used over a period of time.
> See http://beman.github.io/is_iterator/is_iterator.hpp for the actual code
> See http://beman.github.io/is_iterator/is_iterator_test.cpp for a test
AFAIK an iterator T doesn't have to provide an iterator_category
typedef, only std::iterator_traits<T> does.
Therefore this implementation wouldn't work for all iterators.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk