14 #ifndef RANGES_V3_VIEW_EMPTY_HPP
15 #define RANGES_V3_VIEW_EMPTY_HPP
21 #include <range/v3/detail/prologue.hpp>
30 static_assert(std::is_object<T>::value,
31 "The template parameter to empty_view must be an object type.");
33 static constexpr T * begin() noexcept
37 static constexpr T * end() noexcept
45 static constexpr T * data() noexcept
50 "Replace views::empty<T>() with views::empty<T>. "
51 "It is now a variable template.")
59 RANGES_INLINE_VAR constexpr
bool enable_borrowed_range<empty_view<T>> =
true;
71 using ranges::views::empty;
74 requires std::is_object<T>::value)
81 #include <range/v3/detail/epilogue.hpp>
82 #include <range/v3/detail/satisfy_boost_range.hpp>
std::integral_constant< std::size_t, N > size_t
An integral constant wrapper for std::size_t.
Definition: meta.hpp:163
Definition: interface.hpp:129