12#include "detray/definitions/detail/qualifiers.hpp"
13#include "detray/utils/ranges/ranges.hpp"
15namespace detray::ranges {
22template <
typename value_t>
30 static constexpr value_t*
begin() noexcept {
return nullptr; }
34 static constexpr value_t*
end() noexcept {
return nullptr; }
38 static constexpr value_t*
data() noexcept {
return nullptr; }
42 static constexpr std::size_t
size() noexcept {
return 0; }
46 static constexpr bool empty() noexcept {
return true; }
51 constexpr value_t
front() const noexcept = delete;
54 constexpr value_t back() const noexcept = delete;
57 constexpr value_t operator[](const
dindex) const noexcept = delete;
63template <
typename value_t>
69inline constexpr bool enable_borrowed_range<detray::ranges::empty_view<T>> =
Implements an empty view of a given type.
Definition empty.hpp:23
constexpr value_t front() const noexcept=delete
No value contained in view.
static constexpr std::size_t size() noexcept
Definition empty.hpp:42
value_t * iterator_t
Iterator category: bidirectional.
Definition empty.hpp:26
static constexpr bool empty() noexcept
Definition empty.hpp:46
static constexpr value_t * end() noexcept
Definition empty.hpp:34
static constexpr value_t * data() noexcept
Definition empty.hpp:38
static constexpr value_t * begin() noexcept
Definition empty.hpp:30
Defines a detray 'view'.
Definition ranges.hpp:190
unsigned int dindex
Default index type.
Definition indexing.hpp:18