[Groonga-commit] groonga/grnxx at 4eebf7d [master] Use a nested struct.

Back to archive index

susumu.yata null+****@clear*****
Wed Aug 21 12:30:41 JST 2013


susumu.yata	2013-08-21 12:30:41 +0900 (Wed, 21 Aug 2013)

  New Revision: 4eebf7d4f3864d333bdbc387eda0bab7a447199e
  https://github.com/groonga/grnxx/commit/4eebf7d4f3864d333bdbc387eda0bab7a447199e

  Message:
    Use a nested struct.

  Modified files:
    lib/grnxx/map/hash_table.hpp

  Modified: lib/grnxx/map/hash_table.hpp (+6 -8)
===================================================================
--- lib/grnxx/map/hash_table.hpp    2013-08-21 11:39:09 +0900 (de9c7b7)
+++ lib/grnxx/map/hash_table.hpp    2013-08-21 12:30:41 +0900 (db21f75)
@@ -42,18 +42,16 @@ template <typename T> class HashTableImpl;
 struct HashTableHeader;
 
 template <typename T>
-struct HashTableQueueEntry {
-  std::unique_ptr<Pool<T>> pool;
-  std::unique_ptr<HashTableImpl<T>> impl;
-  Time time;
-};
-
-template <typename T>
 class HashTable : public Map<T> {
   using Header     = HashTableHeader;
   using Pool       = Pool<T>;
   using Impl       = HashTableImpl<T>;
-  using QueueEntry = HashTableQueueEntry<T>;
+
+  struct QueueEntry {
+    std::unique_ptr<Pool> pool;
+    std::unique_ptr<Impl> impl;
+    Time time;
+  };
 
  public:
   using Key    = typename Map<T>::Key;
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index