handles_container.hpp 1.3 KB

123456789101112131415161718192021222324252627
  1. /*=============================================================================
  2. Copyright (c) 2001-2011 Hartmut Kaiser
  3. Copyright (c) 2013 Agustin Berge
  4. Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. ==============================================================================*/
  7. #if !defined(BOOST_SPIRIT_X3_HANDLES_CONTAINER_DEC_18_2010_0920AM)
  8. #define BOOST_SPIRIT_X3_HANDLES_CONTAINER_DEC_18_2010_0920AM
  9. #include <boost/mpl/bool.hpp>
  10. namespace boost { namespace spirit { namespace x3 { namespace traits
  11. {
  12. ///////////////////////////////////////////////////////////////////////////
  13. // Whether a component handles container attributes intrinsically
  14. // (or whether container attributes need to be split up separately).
  15. // By default, this gets the Component's handles_container nested value.
  16. // Components may specialize this if such a handles_container is not
  17. // readily available (e.g. expensive to compute at compile time).
  18. ///////////////////////////////////////////////////////////////////////////
  19. template <typename Component, typename Context, typename Enable = void>
  20. struct handles_container : mpl::bool_<Component::handles_container> {};
  21. }}}}
  22. #endif