Struct array< T, Size, enable_if_t< Size==0 > >

Synopsis

#include <include/flecs/addons/cpp/utils/array.hpp>

template <typename T, size_t Size>
struct array<T, Size, enable_if_t<Size == 0>> final

Description

No description yet.

Methods

array overload
begin
end
operator[]
ptr
size

Source

Lines 90-105 in include/flecs/addons/cpp/utils/array.hpp.

template <typename T, size_t Size>
struct array<T, Size, enable_if_t<Size == 0>> final {
    array() {};
    array(const T* (&elems)) { (void)elems; }
    T operator[](size_t index) { ecs_os_abort(); (void)index; return T(); }
    array_iterator<T> begin() { return array_iterator<T>(nullptr, 0); }
    array_iterator<T> end() { return array_iterator<T>(nullptr, 0); }

    size_t size() {
        return 0;
    }

    T* ptr() {
        return NULL;
    }
};