concept_check.hpp 958 B

12345678910111213141516171819202122232425262728293031
  1. /*-----------------------------------------------------------------------------+
  2. Copyright (c) 2009-2009: Joachim Faulhaber
  3. +------------------------------------------------------------------------------+
  4. Distributed under the Boost Software License, Version 1.0.
  5. (See accompanying file LICENCE.txt or copy at
  6. http://www.boost.org/LICENSE_1_0.txt)
  7. +-----------------------------------------------------------------------------*/
  8. #ifndef BOOST_ICL_CONCEPT_CHECK_HPP_JOFA_090913
  9. #define BOOST_ICL_CONCEPT_CHECK_HPP_JOFA_090913
  10. #include <boost/concept_check.hpp>
  11. #include <boost/concept/detail/concept_def.hpp>
  12. namespace boost{ namespace icl
  13. {
  14. BOOST_concept(EqualComparable,(Type))
  15. {
  16. BOOST_CONCEPT_USAGE(EqualComparable) {
  17. require_boolean_expr(_left == _right);
  18. }
  19. private:
  20. Type _left, _right;
  21. };
  22. }}// namespace boost icl
  23. #include <boost/concept/detail/concept_undef.hpp>
  24. #endif