Add functionality for Collections to get underlying items.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-03-29 18:49:10 +02:00
parent 74ac2dbbc3
commit 72b545f5e3
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
2 changed files with 6 additions and 0 deletions

View File

@ -78,6 +78,9 @@ namespace Arbutils::Collections {
iterator end() { return _map.end(); } iterator end() { return _map.end(); }
const_iterator end() const { return _map.end(); } const_iterator end() const { return _map.end(); }
const std::unordered_map<KeyT, ValueT>& GetStdMap() const { return _map; }
std::unordered_map<KeyT, ValueT>& GetStdMap() { return _map; }
}; };
} }

View File

@ -78,6 +78,9 @@ namespace Arbutils::Collections {
const_iterator end() const { return _vector.end(); } const_iterator end() const { return _vector.end(); }
const ValueT* RawData() const { return _vector.data(); } const ValueT* RawData() const { return _vector.data(); }
const std::vector<ValueT>& GetStdList() const { return _vector; }
std::vector<ValueT>& GetStdList() { return _vector; }
}; };
} }