diff options
Diffstat (limited to 'src/generic/fwd.hpp')
-rw-r--r-- | src/generic/fwd.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/generic/fwd.hpp b/src/generic/fwd.hpp index 2517d62..0527290 100644 --- a/src/generic/fwd.hpp +++ b/src/generic/fwd.hpp @@ -39,4 +39,20 @@ template<class K, class V> class UPMap; class InternPool; + +// arrays are complicated +template<class I, I be, I en> +struct ExclusiveIndexing; +template<size_t n> +using SimpleIndexing = ExclusiveIndexing<size_t, 0, n>; +template<class I, I lo, I hi> +struct InclusiveIndexing; +template<class E, E n=E::COUNT> +struct EnumIndexing; +template<class I, size_t limit> +struct InventoryIndexing; +template<class T, class I> +struct GenericArray; +template<class T, size_t n> +using Array = GenericArray<T, SimpleIndexing<n>>; } // namespace tmwa |