Files
boost_fusion/include/boost/fusion/view/identity_view/identity_view.hpp
T

28 lines
974 B
C++

/*=============================================================================
Copyright (c) 2022 Denis Mikhailov
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/
#if !defined(BOOST_FUSION_IDENTITY_VIEW_HPP_INCLUDED)
#define BOOST_FUSION_IDENTITY_VIEW_HPP_INCLUDED
#include <boost/fusion/support/config.hpp>
#include <boost/fusion/view/transform_view.hpp>
#include <boost/functional/identity.hpp>
namespace boost { namespace fusion {
template<typename Sequence> struct identity_view
: transform_view<Sequence, boost::identity>
{
typedef transform_view<Sequence, boost::identity> base_type;
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
identity_view(Sequence& in_seq)
: base_type(in_seq, boost::identity()) {}
};
}}
#endif