17 #ifndef OPENKALMAN_COMPATIBILITY_VIEWS_EMPTY_HPP 18 #define OPENKALMAN_COMPATIBILITY_VIEWS_EMPTY_HPP 25 #ifdef __cpp_lib_ranges 26 using std::ranges::empty_view;
29 using std::ranges::views::empty;
39 static constexpr T* begin() noexcept {
return nullptr; }
41 static constexpr T* end() noexcept {
return nullptr; }
43 static constexpr T* data() noexcept {
return nullptr; }
45 static constexpr std::size_t
size() noexcept {
return 0; }
47 static constexpr
bool empty() noexcept {
return true; }
52 constexpr
bool enable_borrowed_range<empty_view<T>> =
true;
Definition: view_interface.hpp:32
Equivalent to std::ranges::empty_view.
Definition: empty.hpp:37
Definition: common.hpp:200
constexpr bool size
T is either an index representing a size, or unbounded_size_t, which indicates that the size is unbou...
Definition: size.hpp:65