bool_trait_def.hpp 1.0 KB

123456789101112131415161718192021222324252627282930
  1. //-----------------------------------------------------------------------------
  2. // boost/variant/detail/bool_trait_def.hpp header file
  3. // See http://www.boost.org for updates, documentation, and revision history.
  4. //-----------------------------------------------------------------------------
  5. //
  6. // Copyright (c) 2003
  7. // Eric Friedman
  8. //
  9. // Distributed under the Boost Software License, Version 1.0. (See
  10. // accompanying file LICENSE_1_0.txt or copy at
  11. // http://www.boost.org/LICENSE_1_0.txt)
  12. // Needed until move-related traits incorporated into type_traits library.
  13. // no include guards, the header is intended for multiple inclusion!
  14. // should be the last #include
  15. #include "boost/type_traits/detail/bool_trait_def.hpp"
  16. #define BOOST_VARIANT_TT_AUX_BOOL_TRAIT_DEF1(trait,T,C) \
  17. template< typename T > struct trait \
  18. BOOST_TT_AUX_BOOL_C_BASE(C) \
  19. { \
  20. BOOST_TT_AUX_BOOL_TRAIT_VALUE_DECL(C) \
  21. BOOST_MPL_AUX_LAMBDA_SUPPORT(1,trait,(T)) \
  22. }; \
  23. /**/
  24. #define BOOST_VARIANT_TT_AUX_TRAIT_SUFFIX(arity, name) \
  25. BOOST_TT_AUX_TEMPLATE_ARITY_SPEC(arity, name) \
  26. /**/