コード例 #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);}