- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for mapiter3 (0.24 sec)
-
test/escape_reflect.go
return mv.MapKeys() } func mapiter1(m map[string]string) *reflect.MapIter { // ERROR "leaking param: m$" mv := reflect.ValueOf(m) return mv.MapRange() } func mapiter2(m map[string]string) string { // ERROR "leaking param: m$" mv := reflect.ValueOf(m) it := mv.MapRange() if it.Next() { return it.Key().String() } return "" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 18:50:24 UTC 2023 - 13.1K bytes - Viewed (0) -
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) -
api/go1.18.txt
pkg reflect, method (*MapIter) Reset(Value) pkg reflect, method (Value) CanComplex() bool pkg reflect, method (Value) CanFloat() bool pkg reflect, method (Value) CanInt() bool pkg reflect, method (Value) CanUint() bool pkg reflect, method (Value) FieldByIndexErr([]int) (Value, error) pkg reflect, method (Value) SetIterKey(*MapIter) pkg reflect, method (Value) SetIterValue(*MapIter)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 17 20:31:46 UTC 2023 - 13K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/convert_control_to_data_outputs.cc
++member_iter) { ResourceAndDevice resource_and_device = *member_iter; auto map_iter = chain_resource_to_ops_map.find(resource_and_device); if (map_iter == chain_resource_to_ops_map.end()) continue; OperationSetTy& resource_ops = map_iter->getSecond(); // Add dependencies between all ops that access current resource and chain // source and sink.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 28.7K bytes - Viewed (0) -
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) -
src/cmd/vendor/github.com/google/pprof/profile/legacy_profile.go
// structure, not the stack. Check if this is the case and if so, // remove. // Remove up to two frames. maxiter := 2 // Allow one different sample for this many samples with the same // second-to-last frame. similarSamples := 32 margin := len(p.Sample) / similarSamples for iter := 0; iter < maxiter; iter++ { addr1 := make(map[uint64]int) for _, s := range p.Sample { if len(s.Location) > 1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 22 18:58:12 UTC 2022 - 32.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
"plugin": { {"(*Plugin).Lookup", Method, 8}, {"Open", Func, 8}, {"Plugin", Type, 8}, {"Symbol", Type, 8}, }, "reflect": { {"(*MapIter).Key", Method, 12}, {"(*MapIter).Next", Method, 12}, {"(*MapIter).Reset", Method, 18}, {"(*MapIter).Value", Method, 12}, {"(*ValueError).Error", Method, 0}, {"(ChanDir).String", Method, 0}, {"(Kind).String", Method, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0) -
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)