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

Synopsis

#include <include/flecs/addons/cpp/util.hpp>

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

Description

No description yet.

Methods

array overload
begin
end
operator[]
ptr
size

Source

Lines 351-367 in include/flecs/addons/cpp/util.hpp.

template <typename T, size_t Size>
class array<T, Size, enable_if_t<Size == 0>> {
public:
    array() {};
    array(const T* (&elems)) { (void)elems; }
    T operator[](size_t index) { 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;
    }
};