MPL11
 All Classes Namespaces Files Typedefs Macros Groups Pages
enumerable.hpp
Go to the documentation of this file.
1 
12 #ifndef BOOST_MPL11_ENUMERABLE_HPP
13 #define BOOST_MPL11_ENUMERABLE_HPP
14 
16 
17 #include <boost/mpl11/core.hpp>
18 
19 
20 namespace boost { namespace mpl11 {
21  template <typename e>
22  struct succ :
23  Enumerable<typename datatype<typename e::type>::type>::
24  template succ_impl<typename e::type>
25  { };
26 
27  template <typename e>
28  struct pred :
29  Enumerable<typename datatype<typename e::type>::type>::
30  template pred_impl<typename e::type>
31  { };
32 }} // end namespace boost::mpl11
33 
34 #endif // !BOOST_MPL11_ENUMERABLE_HPP
Returns the predecessor of the given object.
Definition: enumerable.hpp:28
Defines the Core module.
Returns the successor of the given object.
Definition: enumerable.hpp:22
Forward declares the Enumerable typeclass.