parameter_requirements.hpp 883 B

12345678910111213141516171819202122232425
  1. // Copyright Daniel Wallin, David Abrahams 2005. Use, modification and
  2. // distribution is subject to the Boost Software License, Version 1.0. (See
  3. // accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. #ifndef PARAMETER_REQUIREMENTS_050331_HPP
  6. #define PARAMETER_REQUIREMENTS_050331_HPP
  7. namespace boost { namespace parameter { namespace aux {
  8. // Used to pass static information about parameter requirements
  9. // through the satisfies() overload set (below). The
  10. // matched function is never invoked, but its type indicates whether
  11. // a parameter matches at compile-time
  12. template <class Keyword, class Predicate, class HasDefault>
  13. struct parameter_requirements
  14. {
  15. typedef Keyword keyword;
  16. typedef Predicate predicate;
  17. typedef HasDefault has_default;
  18. };
  19. }}} // namespace boost::parameter::aux
  20. #endif // PARAMETER_REQUIREMENTS_050331_HPP