Boost logo

Boost :

From: Andrey Semashev (andysem_at_[hidden])
Date: 2007-05-08 17:29:22


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?

-- 
Best regards,
 Andrey                          mailto:andysem_at_[hidden]

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk