示例#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);}