Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/boost/fusion/view/identity_view/identity_view.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*=============================================================================
0002     Copyright (c) 2022 Denis Mikhailov
0003     Distributed under the Boost Software License, Version 1.0. (See accompanying
0004     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0005 ==============================================================================*/
0006 
0007 #if !defined(BOOST_FUSION_IDENTITY_VIEW_HPP_INCLUDED)
0008 #define BOOST_FUSION_IDENTITY_VIEW_HPP_INCLUDED
0009 
0010 #include <boost/fusion/support/config.hpp>
0011 #include <boost/fusion/view/transform_view.hpp>
0012 #include <boost/functional/identity.hpp>
0013 #include <boost/utility/result_of.hpp>
0014 
0015 namespace boost { namespace fusion {
0016     namespace detail {
0017         struct identity : boost::identity
0018         {
0019         };
0020     }
0021 }}
0022 
0023 namespace boost {
0024     template<typename T>
0025     struct result_of<fusion::detail::identity(T)>
0026     {
0027         typedef T type;
0028     };
0029 }
0030 
0031 #ifdef _MSC_VER
0032 #  pragma warning(push)
0033 #  pragma warning(disable: 4512) // assignment operator could not be generated.
0034 #endif
0035 namespace boost { namespace fusion {
0036     template<typename Sequence> struct identity_view 
0037         : transform_view<Sequence, detail::identity>
0038     {
0039         typedef transform_view<Sequence, detail::identity> base_type;
0040 
0041         BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0042         identity_view(Sequence& in_seq)
0043             : base_type(in_seq, detail::identity()) {}
0044     };
0045 }}
0046 #ifdef _MSC_VER
0047 #  pragma warning(pop)
0048 #endif
0049 
0050 #endif