[neurun] Remove verbose template param from Index (#2484)
author이한종/동작제어Lab(SR)/Engineer/삼성전자 <hanjoung.lee@samsung.com>
Mon, 27 Aug 2018 11:00:36 +0000 (20:00 +0900)
committer이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Mon, 27 Aug 2018 11:00:36 +0000 (20:00 +0900)
Remove unnecessary template parameter from class `Index`.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
runtimes/neurun/src/graph/Index.h

index e5345d6..ac601dc 100644 (file)
@@ -13,24 +13,24 @@ template <typename T, typename DummyTag> class Index
 public:
   explicit Index(T o) : _index{o} {}
   explicit Index(int32_t o) : _index{static_cast<T>(o)} {} // For legacy code compatibility
-  Index(const Index<T, DummyTag> &o) : _index{o._index} {}
+  Index(const Index &o) : _index{o._index} {}
 
-  Index<T, DummyTag> &operator=(T o)
+  Index &operator=(T o)
   {
     _index = o;
     return *this;
   }
 
-  Index<T, DummyTag> &operator=(const T &o)
+  Index &operator=(const T &o)
   {
     _index = o._index;
     return *this;
   }
 
   bool operator==(T o) const { return _index == o; }
-  bool operator==(const Index<T, DummyTag> &o) const { return _index == o._index; }
+  bool operator==(const Index &o) const { return _index == o._index; }
   bool operator!=(T o) const { return !(*this == o); }
-  bool operator!=(const Index<T, DummyTag> &o) const { return !(*this == o); }
+  bool operator!=(const Index &o) const { return !(*this == o); }
 
   T value() const { return _index; }
   int32_t asInt() const { return static_cast<int32_t>(_index); } // For legacy code compatibility