clear.hpp 731 B

1234567891011121314151617181920212223
  1. /*=============================================================================
  2. Copyright (c) 2012 Kohei Takahashi
  3. Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. ==============================================================================*/
  6. #if !defined(BOOST_FUSION_CLEAR_10172012_0100)
  7. #define BOOST_FUSION_CLEAR_10172012_0100
  8. #include <boost/mpl/identity.hpp>
  9. #include <boost/fusion/adapted/boost_tuple/tag_of.hpp>
  10. namespace boost { namespace fusion { namespace detail {
  11. template <typename Tag>
  12. struct clear;
  13. template <>
  14. struct clear<boost_tuple_tag> : mpl::identity<boost::tuple<> > {};
  15. }}}
  16. #endif