Class array< T, Size, typename std::enable_if< Size==0 >::type >

Synopsis

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

template <typename T, size_t Size>
class array<T, Size, typename std::enable_if<Size == 0>::type>

Description

No description yet.

Methods

array overload
begin
end
operator[]

Source

Lines 247-255 in include/flecs/cpp/util.hpp.

template <typename T, size_t Size>
class array<T, Size, typename std::enable_if<Size == 0>::type> {
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); }
};