Пример #1
0
 FixedMap(std::map<KeyType, ValueType, Comp, Alloc>&& other)
     : FixedMap() {
   insert(std::begin(other), std::end(other));
   other.clear();
 }
Пример #2
0
 FixedMap& operator=(std::initializer_list<value_type> init) {
   insert(init);
   return *this;
 }
Пример #3
0
 FixedMap(const std::map<KeyType, ValueType, Comp, Alloc>& other)
     : FixedMap() {
   insert(std::begin(other), std::end(other));
 }
Пример #4
0
 FixedMap& operator=(const FixedMap& other) {
   insert(std::begin(other), std::end(other));
   return *this;
 }
Пример #5
0
 FixedMap& operator=(FixedMap&& other) {
   insert(std::begin(other), std::end(other));
   other.clear();
   return *this;
 }
Пример #6
0
 FixedMap(FixedMap&& other) : FixedMap() {
   insert(std::begin(other), std::end(other));
   other.clear();
 }
Пример #7
0
 FixedMap(std::initializer_list<value_type> init) : FixedMap() {
   insert(init);
 }
Пример #8
0
 FixedMap(InputIterator first, InputIterator last,
          const Compare& comp = Compare())
     : FixedMap(comp) {
   insert(first, last);
 }
Пример #9
0
 FixedMap(const FixedMap& other) : FixedMap() {
   insert(std::begin(other), std::end(other));
 }
Пример #10
0
 FixedMultiMap& operator=(
     std::multimap<KeyType, ValueType, Comp, Alloc>&& other) {
   insert(std::begin(other), std::end(other));
   other.clear();
   return *this;
 }
Пример #11
0
 FixedMap& operator=(const std::map<KeyType, ValueType, Comp, Alloc>& other) {
   insert(std::begin(other), std::end(other));
   return *this;
 }
Пример #12
0
    void insert(InputIterator start, InputIterator finish)
	{_base.insert(start, finish);}
Пример #13
0
    /// If a value_type with the same key as x is not present in the map, then x is inserted into the map. Otherwise, the pair is not inserted. A position may be supplied as a hint regarding where to do the insertion. If the insertion is done right after position, then it takes amortized constant time. Otherwise it takes O(log N) time.
    virtual iterator insert(iterator position, const value_type& x)
	{return _base.insert(position, x);}
Пример #14
0
 /// If a value_type with the same key as x is not present in the map, then x is inserted into the map. Otherwise, the pair is not inserted. A position may be supplied as a hint regarding where to do the insertion. If the insertion is done right after position, then it takes amortized constant time. Otherwise it takes O(log N) time.
 virtual std::pair<iterator, bool> insert(const value_type& x)
 {return _base.insert(x);}