1 #ifndef DOZERG_ITERATOR_ADAPTER_H_20081013 2 #define DOZERG_ITERATOR_ADAPTER_H_20081013 58 #include "impl/iter_adapter_impl.hh" 63 template<
class Ext,
class ConstIt>
64 inline NS_IMPL::CConstIterAdapter<ConstIt, Ext> const_iter_adapt(ConstIt it, Ext ext)
66 return NS_IMPL::CConstIterAdapter<ConstIt, Ext>(it, ext);
69 template<
class Ext,
class ConstIt>
70 inline NS_IMPL::CConstIterAdapter<ConstIt, Ext> const_iter_adapt(ConstIt it)
72 return NS_IMPL::CConstIterAdapter<ConstIt, Ext>(it, Ext());
76 template<
class Ext,
class It>
77 inline NS_IMPL::CIterAdapter<It, Ext> iter_adapt(It it, Ext ext)
79 return NS_IMPL::CIterAdapter<It, Ext>(it, ext);
82 template<
class Ext,
class It>
83 inline NS_IMPL::CIterAdapter<It, Ext> iter_adapt(It it)
85 return NS_IMPL::CIterAdapter<It, Ext>(it, Ext());
89 template<
class T,
class ConstIt,
class Func>
90 inline NS_IMPL::CConstIterAdapter<ConstIt, NS_IMPL::CIterAdapterFunctor<ConstIt, T, Func> > const_iter_adapt_fun(ConstIt it, Func func)
92 typedef NS_IMPL::CIterAdapterFunctor<ConstIt, T, Func> __Ext;
93 return NS_IMPL::CConstIterAdapter<ConstIt, __Ext>(it, __Ext(func));
97 template<
class T,
class It,
class Func>
98 inline NS_IMPL::CIterAdapter<It, NS_IMPL::CIterAdapterFunctor<It, T, Func> > iter_adapt_fun(It it, Func func)
100 typedef NS_IMPL::CIterAdapterFunctor<It, T, Func> __Ext;
101 return NS_IMPL::CIterAdapter<It, __Ext>(it, __Ext(func));