mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 05:36:59 -04:00
Added clone() function to Value.
Added support for per-card styling git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@430 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -114,10 +114,19 @@ class IndexMap : private vector<Value> {
|
||||
return end();
|
||||
}
|
||||
|
||||
inline void swap(IndexMap& b) {
|
||||
vector<Value>::swap(b);
|
||||
}
|
||||
|
||||
private:
|
||||
using vector<Value>::operator [];
|
||||
};
|
||||
|
||||
template <typename Key, typename Value>
|
||||
inline void swap(IndexMap<Key,Value>& a, IndexMap<Key,Value>& b) {
|
||||
a.swap(b);
|
||||
}
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------- : DelayedIndexMaps
|
||||
|
||||
|
||||
Reference in New Issue
Block a user