File indexing completed on 2025-01-18 09:34:41
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef BOOST_FUSION_ITERATOR_DEREF_DATA_HPP
0009 #define BOOST_FUSION_ITERATOR_DEREF_DATA_HPP
0010
0011 #include <boost/fusion/support/config.hpp>
0012 #include <boost/fusion/support/tag_of.hpp>
0013
0014 namespace boost { namespace fusion
0015 {
0016 struct iterator_facade_tag;
0017
0018 namespace extension
0019 {
0020 template <typename>
0021 struct deref_data_impl;
0022
0023 template <>
0024 struct deref_data_impl<iterator_facade_tag>
0025 {
0026 template <typename It>
0027 struct apply
0028 : It::template deref_data<It>
0029 {};
0030 };
0031 }
0032
0033 namespace result_of
0034 {
0035 template <typename It>
0036 struct deref_data
0037 : extension::deref_data_impl<typename traits::tag_of<It>::type>::
0038 template apply<It>
0039 {};
0040 }
0041
0042 template <typename It>
0043 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0044 inline typename result_of::deref_data<It>::type
0045 deref_data(It const& it)
0046 {
0047 return result_of::deref_data<It>::call(it);
0048 }
0049 }}
0050
0051 #endif