17 #ifndef OPENKALMAN_COMPATIBILITY_VIEWS_EMPTY_HPP 18 #define OPENKALMAN_COMPATIBILITY_VIEWS_EMPTY_HPP 20 #ifndef __cpp_lib_ranges 34 static constexpr T* begin() noexcept {
return nullptr; }
36 static constexpr T* end() noexcept {
return nullptr; }
38 static constexpr T* data() noexcept {
return nullptr; }
40 static constexpr std::size_t size() noexcept {
return 0; }
42 static constexpr
bool empty() noexcept {
return true; }
47 constexpr
bool enable_borrowed_range<OpenKalman::ranges::empty_view<T>> =
true;
65 #endif //OPENKALMAN_COMPATIBILITY_VIEWS_EMPTY_HPP
Definition: view_interface.hpp:32
Definition: range-access.hpp:25
Equivalent to std::ranges::single_view.
Definition: empty.hpp:32