Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for mapiter1 (2.67 sec)

  1. src/reflect/value.go

    	elem = elem.assignTo("reflect.MapIter.SetValue", v.typ(), target)
    	typedmemmove(v.typ(), v.ptr, elem.ptr)
    }
    
    // Next advances the map iterator and reports whether there is another
    // entry. It returns false when iter is exhausted; subsequent
    // calls to [MapIter.Key], [MapIter.Value], or [MapIter.Next] will panic.
    func (iter *MapIter) Next() bool {
    	if !iter.m.IsValid() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  2. src/reflect/all_test.go

    		}
    		if setkey, key := valueToString(k), valueToString(iter.Key()); setkey != key {
    			t.Errorf("MapIter.Key() = %q, MapIter.SetKey() = %q", key, setkey)
    		}
    		if setval, val := valueToString(e), valueToString(iter.Value()); setval != val {
    			t.Errorf("MapIter.Value() = %q, MapIter.SetValue() = %q", val, setval)
    		}
    	}
    
    	if testenv.OptimizationOff() {
    		return // no inlining with the noopt builder
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  3. src/database/sql/sql.go

    //   - removing an element (only by the caller who added it)
    //   - taking (get + delete) a random element
    //
    // We previously used a map for this but the take of a random element
    // was expensive, making mapiters. This type avoids a map entirely
    // and just uses a slice.
    type connRequestSet struct {
    	// s are the elements in the set.
    	s []connRequestAndIndex
    }
    
    type connRequestAndIndex struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
Back to top