ludus::foundation::BorrowedView¶
Ludus Wiki · API overview · Browse API
Class
Declared in modules/foundation/containers/include/ludus/foundation/containers/borrowed_view.hpp
#include <ludus/foundation/containers/borrowed_view.hpp>
template <typename ElementType>
class ludus::foundation::BorrowedView final
Methods¶
BorrowedView¶
constexpr ludus::foundation::BorrowedView< ElementType >::BorrowedView() noexcept=default
Declared in modules/foundation/containers/include/ludus/foundation/containers/borrowed_view.hpp
BorrowedView¶
constexpr ludus::foundation::BorrowedView< ElementType >::BorrowedView(ElementType *dataOrNull, usize count) noexcept
| Parameter | Description |
|---|---|
dataOrNull |
Null is allowed only when count is zero for a valid view.
|
count |
Number of elements, not bytes. Construction preserves invalid input for validation.
|
Related types: usize
Declared in modules/foundation/containers/include/ludus/foundation/containers/borrowed_view.hpp
BorrowedView¶
template <usize Count>
constexpr ludus::foundation::BorrowedView< ElementType >::BorrowedView(ElementType(&inoutElements)[Count]) noexcept
Related types: usize
Declared in modules/foundation/containers/include/ludus/foundation/containers/borrowed_view.hpp
IsValid¶
constexpr bool ludus::foundation::BorrowedView< ElementType >::IsValid() const noexcept
Declared in modules/foundation/containers/include/ludus/foundation/containers/borrowed_view.hpp
IsEmpty¶
constexpr bool ludus::foundation::BorrowedView< ElementType >::IsEmpty() const noexcept
Declared in modules/foundation/containers/include/ludus/foundation/containers/borrowed_view.hpp
GetSize¶
constexpr usize ludus::foundation::BorrowedView< ElementType >::GetSize() const noexcept
Related types: usize
Declared in modules/foundation/containers/include/ludus/foundation/containers/borrowed_view.hpp
GetDataOrNull¶
constexpr ElementType * ludus::foundation::BorrowedView< ElementType >::GetDataOrNull() const noexcept
Declared in modules/foundation/containers/include/ludus/foundation/containers/borrowed_view.hpp
operator[]¶
constexpr ElementType & ludus::foundation::BorrowedView< ElementType >::operator[](usize index) const noexcept
Related types: usize
Declared in modules/foundation/containers/include/ludus/foundation/containers/borrowed_view.hpp