/usr/include/boost/fusion/algorithm/transformation
Edit: /usr/include/boost/fusion/algorithm/transformation/push_back.hpp (1651B)
/*=============================================================================
Copyright (c) 2001-2011 Joel de Guzman
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(FUSION_PUSH_BACK_07162005_0235)
#define FUSION_PUSH_BACK_07162005_0235
#include
#include
#include
#include
#include
#include
namespace boost { namespace fusion
{
namespace result_of
{
template
struct push_back
{
typedef fusion::single_view::type> single_view;
typedef joint_view type;
};
}
template
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename
lazy_enable_if<
traits::is_sequence
, result_of::push_back
>::type
push_back(Sequence const& seq, T const& x)
{
typedef typename result_of::push_back push_back;
typedef typename push_back::single_view single_view;
typedef typename push_back::type result;
single_view x_(x);
return result(seq, x_);
}
}}
#endif