File indexing completed on 2025-01-18 09:31:17
0001
0002
0003
0004
0005
0006
0007 #if !defined(FUSION_ERASE_KEY_10022005_1851)
0008 #define FUSION_ERASE_KEY_10022005_1851
0009
0010 #include <boost/fusion/support/config.hpp>
0011 #include <boost/fusion/algorithm/query/find.hpp>
0012 #include <boost/fusion/algorithm/transformation/erase.hpp>
0013 #include <boost/mpl/not.hpp>
0014 #include <boost/type_traits/is_same.hpp>
0015
0016 namespace boost { namespace fusion
0017 {
0018 namespace result_of
0019 {
0020 template <typename Sequence, typename Key>
0021 struct erase_key
0022 : erase<Sequence, typename find<Sequence, Key>::type>
0023 {};
0024 }
0025
0026 template <typename Key, typename Sequence>
0027 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0028 inline typename result_of::erase_key<Sequence const, Key>::type
0029 erase_key(Sequence const& seq)
0030 {
0031 return erase(seq, find<Key>(seq));
0032 }
0033 }}
0034
0035 #endif
0036