• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*=============================================================================
2     Copyright (c) 2001-2011 Hartmut Kaiser
3     Copyright (c) 2013 Agustin Berge
4 
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_HANDLES_CONTAINER_DEC_18_2010_0920AM)
9 #define BOOST_SPIRIT_X3_HANDLES_CONTAINER_DEC_18_2010_0920AM
10 
11 #include <boost/mpl/bool.hpp>
12 
13 namespace boost { namespace spirit { namespace x3 { namespace traits
14 {
15     ///////////////////////////////////////////////////////////////////////////
16     // Whether a component handles container attributes intrinsically
17     // (or whether container attributes need to be split up separately).
18     // By default, this gets the Component's handles_container nested value.
19     // Components may specialize this if such a handles_container is not
20     // readily available (e.g. expensive to compute at compile time).
21     ///////////////////////////////////////////////////////////////////////////
22     template <typename Component, typename Context, typename Enable = void>
23     struct handles_container : mpl::bool_<Component::handles_container> {};
24 
25 }}}}
26 
27 #endif
28