diff options
| author | ljfa-ag <ljfa-ag@web.de> | 2015-06-28 19:23:40 +0200 |
|---|---|---|
| committer | ljfa-ag <ljfa-ag@web.de> | 2015-06-28 19:23:40 +0200 |
| commit | 6374857bfd25a033ff31316157c985645ae4519c (patch) | |
| tree | 86488bfba0d7f64d1be8f208681449f2250f1abd /include | |
| parent | 9337c5455222c878019ab1cd4779cc5023e73507 (diff) | |
| download | Project-Tick-6374857bfd25a033ff31316157c985645ae4519c.tar.gz Project-Tick-6374857bfd25a033ff31316157c985645ae4519c.zip | |
Iterators typedefs for tag_compound
Diffstat (limited to 'include')
| -rw-r--r-- | include/tag_compound.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/tag_compound.h b/include/tag_compound.h index e0426dbf74..51ca877a06 100644 --- a/include/tag_compound.h +++ b/include/tag_compound.h @@ -23,7 +23,6 @@ #include "tag.h" #include "value.h" #include <map> -#include <memory> #include <string> namespace nbt @@ -34,8 +33,8 @@ class tag_compound : public tag { public: //Iterator types - typedef void* iterator; //FIXME - typedef const void* const_iterator; + typedef std::map<std::string, value>::iterator iterator; + typedef std::map<std::string, value>::const_iterator const_iterator; ///The type of the tag static constexpr tag_type type = tag_type::Compound; @@ -91,7 +90,7 @@ public: tag_type get_type() const noexcept override; private: - + std::map<std::string, value> tags; bool equals(const tag& rhs) const override; }; |
