is_function.hpp 1012 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  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. *
  6. * Copyright (c) 2017 Andrey Semashev
  7. */
  8. /*!
  9. * \file atomic/detail/type_traits/is_function.hpp
  10. *
  11. * This header defines \c is_function type trait
  12. */
  13. #ifndef BOOST_ATOMIC_DETAIL_TYPE_TRAITS_IS_FUNCTION_HPP_INCLUDED_
  14. #define BOOST_ATOMIC_DETAIL_TYPE_TRAITS_IS_FUNCTION_HPP_INCLUDED_
  15. #include <boost/atomic/detail/config.hpp>
  16. #if !defined(BOOST_ATOMIC_DETAIL_NO_CXX11_BASIC_HDR_TYPE_TRAITS)
  17. #include <type_traits>
  18. #else
  19. #include <boost/type_traits/is_function.hpp>
  20. #endif
  21. #ifdef BOOST_HAS_PRAGMA_ONCE
  22. #pragma once
  23. #endif
  24. namespace boost {
  25. namespace atomics {
  26. namespace detail {
  27. #if !defined(BOOST_ATOMIC_DETAIL_NO_CXX11_BASIC_HDR_TYPE_TRAITS)
  28. using std::is_function;
  29. #else
  30. using boost::is_function;
  31. #endif
  32. } // namespace detail
  33. } // namespace atomics
  34. } // namespace boost
  35. #endif // BOOST_ATOMIC_DETAIL_TYPE_TRAITS_IS_FUNCTION_HPP_INCLUDED_