mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-01 06:12:23 -06:00
Core: VectorMap initialization improved
git-svn-id: svn://ultimatepp.org/upp/trunk@13541 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
737d910a2b
commit
2ccc34e131
1 changed files with 1 additions and 1 deletions
|
|
@ -176,7 +176,7 @@ public:
|
|||
AMap(const AMap& s, int) : key(s.key, 0), value(s.value, 0) {}
|
||||
AMap(Index<K>&& ndx, V&& val) : key(pick(ndx)), value(pick(val)) {}
|
||||
AMap(Vector<K>&& ndx, V&& val) : key(pick(ndx)), value(pick(val)) {}
|
||||
AMap(std::initializer_list<std::pair<K, T>> init) { for(const auto& i : init) Add(i.first, clone(i.second)); }
|
||||
AMap(std::initializer_list<std::pair<K, T>> init) { for(const auto& i : init) Add(clone(i.first), clone(i.second)); }
|
||||
|
||||
typedef IteratorOf<V> Iterator;
|
||||
typedef ConstIteratorOf<V> ConstIterator;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue