PIMap {{K, T}, {K, T}, ...} constructor

doc ru
This commit is contained in:
2022-05-06 12:45:08 +03:00
parent 0b3ee4bb6a
commit 9714d8ea42
3 changed files with 254 additions and 120 deletions

View File

@@ -78,6 +78,10 @@ public:
PIMap() {;}
PIMap(const PIMap<Key, T> & other) {*this = other;}
PIMap(PIMap<Key, T> && other) : pim_content(std::move(other.pim_content)), pim_index(std::move(other.pim_index)) {}
PIMap(std::initializer_list<std::tuple<Key, T>> init_list) {
for (auto i: init_list)
insert(std::get<0>(i), std::get<1>(i));
}
virtual ~PIMap() {;}
PIMap<Key, T> & operator =(const PIMap<Key, T> & other) {