set.hpp 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #ifndef BOOST_MPL_SET_HPP_INCLUDED
  2. #define BOOST_MPL_SET_HPP_INCLUDED
  3. // Copyright Aleksey Gurtovoy 2000-2004
  4. //
  5. // Distributed under the Boost Software License, Version 1.0.
  6. // (See accompanying file LICENSE_1_0.txt or copy at
  7. // http://www.boost.org/LICENSE_1_0.txt)
  8. //
  9. // See http://www.boost.org/libs/mpl for documentation.
  10. // $Id$
  11. // $Date$
  12. // $Revision$
  13. #if !defined(BOOST_MPL_PREPROCESSING_MODE)
  14. # include <boost/mpl/limits/set.hpp>
  15. # include <boost/mpl/aux_/na.hpp>
  16. # include <boost/mpl/aux_/config/preprocessor.hpp>
  17. # include <boost/preprocessor/inc.hpp>
  18. # include <boost/preprocessor/cat.hpp>
  19. # include <boost/preprocessor/stringize.hpp>
  20. #if !defined(BOOST_NEEDS_TOKEN_PASTING_OP_FOR_TOKENS_JUXTAPOSING)
  21. # define AUX778076_SET_HEADER \
  22. BOOST_PP_CAT(set, BOOST_MPL_LIMIT_SET_SIZE).hpp \
  23. /**/
  24. #else
  25. # define AUX778076_SET_HEADER \
  26. BOOST_PP_CAT(set, BOOST_MPL_LIMIT_SET_SIZE)##.hpp \
  27. /**/
  28. #endif
  29. # include BOOST_PP_STRINGIZE(boost/mpl/set/AUX778076_SET_HEADER)
  30. # undef AUX778076_SET_HEADER
  31. #endif
  32. #include <boost/mpl/aux_/config/use_preprocessed.hpp>
  33. #if !defined(BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS) \
  34. && !defined(BOOST_MPL_PREPROCESSING_MODE)
  35. # define BOOST_MPL_PREPROCESSED_HEADER set.hpp
  36. # include <boost/mpl/aux_/include_preprocessed.hpp>
  37. #else
  38. # include <boost/mpl/limits/set.hpp>
  39. # define AUX778076_SEQUENCE_NAME set
  40. # define AUX778076_SEQUENCE_LIMIT BOOST_MPL_LIMIT_SET_SIZE
  41. # include <boost/mpl/aux_/sequence_wrapper.hpp>
  42. #endif // BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
  43. #endif // BOOST_MPL_SET_HPP_INCLUDED