clear.hpp 724 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_0940)
  7. #define BOOST_FUSION_CLEAR_10172012_0940
  8. #include <boost/mpl/identity.hpp>
  9. #include <boost/fusion/adapted/std_tuple/tag_of.hpp>
  10. namespace boost { namespace fusion { namespace detail
  11. {
  12. template <typename Tag>
  13. struct clear;
  14. template <>
  15. struct clear<std_tuple_tag> : mpl::identity<std::tuple<> > {};
  16. }}}
  17. #endif