From 5375b3916095970bc87675969b2fb00d9bebcfd8 Mon Sep 17 00:00:00 2001 From: Michael Bebenita Date: Tue, 7 Sep 2010 18:22:03 -0700 Subject: Small updates to util classes. --- src/rt/util/indexed_list.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/rt/util/indexed_list.h') diff --git a/src/rt/util/indexed_list.h b/src/rt/util/indexed_list.h index cd39a0b6..b93945cc 100644 --- a/src/rt/util/indexed_list.h +++ b/src/rt/util/indexed_list.h @@ -10,6 +10,15 @@ public: int32_t list_index; }; +template +class indexed_list_element : public indexed_list_object { +public: + T value; + indexed_list_element(T value) : value(value) { + // Nop; + } +}; + /** * An array list of objects that are aware of their position in the list. * Normally, objects in this list should derive from the base class -- cgit v1.2.3