Don't require capacity parameter for Dictionary.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-03-22 16:55:07 +01:00
parent 3bbb12f485
commit e6d58723fc
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 1 additions and 0 deletions

View File

@ -11,6 +11,7 @@ namespace Arbutils::Collections {
using iterator = typename std::unordered_map<KeyT, ValueT, std::hash<KeyT>, std::equal_to<KeyT>,
std::allocator<std::pair<const KeyT, ValueT>>>::iterator;
public:
Dictionary() : _map() {}
explicit Dictionary(size_t capacity) : _map(capacity) {}
explicit Dictionary(const std::initializer_list<std::pair<const KeyT, ValueT>>& l) : _map(l){}