$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: David Abrahams (dave_at_[hidden])
Date: 2007-05-09 12:27:53
on Tue May 08 2007, Andrey Semashev <andysem-AT-mail.ru> wrote:
> Hello,
>
> Quite often I find myself writing an is_const_iterator trait which
> looks like this:
>
> //! A helper traits to check if an iterator is const
> template< typename ItT >
> struct is_const_iterator :
> public is_const<
> typename remove_reference<
> typename iterator_reference< ItT >::type
> >::type
> >
> {
> };
>
> Maybe it is worth adding to Boost.Iterators library? Or maybe there
> already is something like that?
What's it useful for?
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com Don't Miss BoostCon 2007! ==> http://www.boostcon.com