1. Mathias Panzenböck
  2. unvpk

Commits

Mathias Panzenböck  committed 373bd41

use hastable instead of tree for name lookup

  • Participants
  • Parent commits 3ea58bb
  • Branches default

Comments (0)

Files changed (1)

File libvpk/include/vpk/node.h

View file
 
 #include <iostream>
 #include <string>
-#include <map>
 
 #include <boost/shared_ptr.hpp>
+#include <boost/unordered_map.hpp>
 
 namespace Vpk {
 	class Node {
 		std::string m_name;
 	};
 
-	typedef boost::shared_ptr<Node>       NodePtr;
-	typedef std::map<std::string,NodePtr> Nodes;
+	typedef boost::shared_ptr<Node>                   NodePtr;
+	typedef boost::unordered_map<std::string,NodePtr> Nodes;
 }
 
 #endif