transform_attribute.hpp 1.2 KB

1234567891011121314151617181920212223242526272829
  1. /*=============================================================================
  2. Copyright (c) 2001-2014 Joel de Guzman
  3. Copyright (c) 2001-2012 Hartmut Kaiser
  4. http://spirit.sourceforge.net/
  5. Distributed under the Boost Software License, Version 1.0. (See accompanying
  6. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. =============================================================================*/
  8. #if !defined(BOOST_SPIRIT_X3_ATTRIBUTE_TRANSFORM_JAN_8_2012_0721PM)
  9. #define BOOST_SPIRIT_X3_ATTRIBUTE_TRANSFORM_JAN_8_2012_0721PM
  10. #include <boost/mpl/identity.hpp>
  11. namespace boost { namespace spirit { namespace x3 { namespace traits
  12. {
  13. ///////////////////////////////////////////////////////////////////////////
  14. // transform_attribute
  15. //
  16. // Sometimes the user needs to transform the attribute types for certain
  17. // attributes. This template can be used as a customization point, where
  18. // the user is able specify specific transformation rules for any attribute
  19. // type.
  20. ///////////////////////////////////////////////////////////////////////////
  21. template <typename Exposed, typename Transformed, typename Tag
  22. , typename Enable = void>
  23. struct transform_attribute;
  24. }}}}
  25. #endif