|
Boost : |
From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2006-10-20 16:26:07
Arkadiy Vertleyb wrote:
> Also is there any interest in a typeof-independent facility to parse an STL
> iterator, something like:
>
> is_iterator<It>::value;
> is_const<It>::value;
> deduce_container<It>::type;
Cool!
template<class It>
inline typename deduce_container<It>::type::const_iterator to_const(It it)
{
return it;
}
-- Alexander Nasonov Project Manager at Akmosoft ( http://www.akmosoft.com ) Blog: http://nasonov.blogspot.com Email: $(FirstName) dot $(LastName) at gmail dot com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk