|
Boost : |
From: Andy Little (andy_at_[hidden])
Date: 2005-02-27 11:37:51
"David Abrahams" <dave_at_[hidden]> wrote
> template <class Iterator, class Enable = void>
> struct IteratorTraits;
>
> template <class Iterator>
> struct IteratorTraits<
> Iterator
> , boost::enable_if<
> boost::is_same<
> Iterator
> , typename std::vector<
> typename std::iterator_traits<Iterator>::value_type
> >::iterator
> >
> >::type
> >
> {
> // whatever you want here.
> };
If the following proposal was accepted it might even be possible to do
without the
extra parameter :-)
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1696.html
regards
Andy Little
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk