use_default_tag.hpp 787 B

1234567891011121314151617181920212223242526272829
  1. // Copyright Daniel Wallin 2006.
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. #ifndef BOOST_PARAMETER_USE_DEFAULT_TAG_HPP
  6. #define BOOST_PARAMETER_USE_DEFAULT_TAG_HPP
  7. #include <boost/config.hpp>
  8. namespace boost { namespace parameter { namespace aux {
  9. struct use_default_tag
  10. {
  11. inline BOOST_CONSTEXPR BOOST_DEFAULTED_FUNCTION(use_default_tag(), {})
  12. inline BOOST_CONSTEXPR BOOST_DEFAULTED_FUNCTION(
  13. use_default_tag(use_default_tag const&), {}
  14. )
  15. inline BOOST_CONSTEXPR use_default_tag operator()() const
  16. {
  17. return *this;
  18. }
  19. };
  20. }}} // namespace boost::parameter::aux
  21. #endif // include guard