A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix the DTD to not allow to mix internal node content with leaf content in a given...
[simgrid.git]
/
src
/
surf
/
PropertyHolder.hpp
diff --git
a/src/surf/PropertyHolder.hpp
b/src/surf/PropertyHolder.hpp
index
02eb5b9
..
37a30ef
100644
(file)
--- a/
src/surf/PropertyHolder.hpp
+++ b/
src/surf/PropertyHolder.hpp
@@
-5,8
+5,8
@@
#ifndef SRC_SURF_PROPERTYHOLDER_HPP_
#define SRC_SURF_PROPERTYHOLDER_HPP_
#ifndef SRC_SURF_PROPERTYHOLDER_HPP_
#define SRC_SURF_PROPERTYHOLDER_HPP_
-#include <map>
#include <string>
#include <string>
+#include <unordered_map>
namespace simgrid {
namespace surf {
namespace simgrid {
namespace surf {
@@
-24,13
+24,13
@@
public:
const char* get_property(std::string key);
void set_property(std::string id, std::string value);
const char* get_property(std::string key);
void set_property(std::string id, std::string value);
- /* FIXME: This should not be exposed, as users may do bad things with the
dict
they got (it's not a copy).
+ /* FIXME: This should not be exposed, as users may do bad things with the
map
they got (it's not a copy).
* But some user API expose this call so removing it is not so easy.
*/
* But some user API expose this call so removing it is not so easy.
*/
- std::map<std::string, std::string>* get_properties();
+ std::
unordered_
map<std::string, std::string>* get_properties();
private:
private:
- std::map<std::string, std::string>* properties_ = nullptr;
+ std::
unordered_
map<std::string, std::string>* properties_ = nullptr;
};
} /* namespace surf */
};
} /* namespace surf */