You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
865B

  1. // Range v3 library
  2. //
  3. // Copyright Eric Niebler 2013,2014.
  4. //
  5. // Use, modification and distribution is subject to the
  6. // Boost Software License, Version 1.0. (See accompanying
  7. // file LICENSE_1_0.txt or copy at
  8. // http://www.boost.org/LICENSE_1_0.txt)
  9. //
  10. // Project home: https://github.com/ericniebler/range-v3
  11. //
  12. #ifndef RANGES_V3_UTILITY_NULLPTR_V_HPP
  13. #define RANGES_V3_UTILITY_NULLPTR_V_HPP
  14. #include <range/v3/detail/config.hpp>
  15. RANGES_DEPRECATED_HEADER(
  16. "This header is deprecated and will be removed from a future version of range-v3.")
  17. namespace ranges
  18. {
  19. /// \ingroup group-utility
  20. template<typename T>
  21. constexpr T * _nullptr_v()
  22. {
  23. return nullptr;
  24. }
  25. #if RANGES_CXX_VARIABLE_TEMPLATES
  26. /// \ingroup group-utility
  27. template<typename T>
  28. constexpr T * nullptr_v = nullptr;
  29. #endif
  30. } // namespace ranges
  31. #endif