1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #if !defined(BOOST_FUSION_AT_IMPL_27122005_1241)
- #define BOOST_FUSION_AT_IMPL_27122005_1241
- #include <boost/fusion/support/config.hpp>
- #include <boost/type_traits/is_const.hpp>
- #include <boost/mpl/if.hpp>
- namespace boost { namespace fusion {
- struct boost_array_tag;
- namespace extension
- {
- template<typename T>
- struct at_impl;
- template<>
- struct at_impl<boost_array_tag>
- {
- template<typename Sequence, typename N>
- struct apply
- {
- typedef typename mpl::if_<
- is_const<Sequence>,
- typename Sequence::const_reference,
- typename Sequence::reference>::type type;
- BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
- static type
- call(Sequence& seq)
- {
- return seq[N::value];
- }
- };
- };
- }
- }}
- #endif
|