Boost logo

Boost :

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 for the actual code
> See for a test
> program.

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, gregod at, cpdaniel at, john at