Horizon
nullptr_v.hpp
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 
13 #ifndef RANGES_V3_UTILITY_NULLPTR_V_HPP
14 #define RANGES_V3_UTILITY_NULLPTR_V_HPP
15 
16 #include <range/v3/detail/config.hpp>
18  "This header is deprecated and will be removed from a future version of range-v3.")
19 
20 #include <range/v3/detail/prologue.hpp>
21 
22 namespace ranges
23 {
25  template<typename T>
26  constexpr T * _nullptr_v()
27  {
28  return nullptr;
29  }
30 
31 #if RANGES_CXX_VARIABLE_TEMPLATES
33  template<typename T>
34  constexpr T * nullptr_v = nullptr;
35 #endif
36 } // namespace ranges
37 
38 #include <range/v3/detail/epilogue.hpp>
39 
40 #endif
RANGES_DEPRECATED_HEADER("This header is deprecated and will be removed from a future version of range-v3.") namespace ranges
Definition: nullptr_v.hpp:17