diff --git a/BAN/include/BAN/HashMap.h b/BAN/include/BAN/HashMap.h index 9c47d526..108259d6 100644 --- a/BAN/include/BAN/HashMap.h +++ b/BAN/include/BAN/HashMap.h @@ -19,6 +19,12 @@ namespace BAN , value(forward(args)...) {} + template + Entry(Key&& key, Args&&... args) requires is_constructible_v + : key(BAN::move(key)) + , value(forward(args)...) + {} + Key key; T value; };