Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 103 for mapTypes (0.16 sec)

  1. src/go/printer/nodes.go

    // The result is false if x could be a type element OR an ordinary (value) expression.
    func isTypeElem(x ast.Expr) bool {
    	switch x := x.(type) {
    	case *ast.ArrayType, *ast.StructType, *ast.FuncType, *ast.InterfaceType, *ast.MapType, *ast.ChanType:
    		return true
    	case *ast.UnaryExpr:
    		return x.Op == token.TILDE
    	case *ast.BinaryExpr:
    		return isTypeElem(x.X) || isTypeElem(x.Y)
    	case *ast.ParenExpr:
    		return isTypeElem(x.X)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  2. doc/go1.17_spec.html

    }
    type Bad2 interface {
    	Bad1
    }
    </pre>
    
    <h3 id="Map_types">Map types</h3>
    
    <p>
    A map is an unordered group of elements of one type, called the
    element type, indexed by a set of unique <i>keys</i> of another type,
    called the key type.
    The value of an uninitialized map is <code>nil</code>.
    </p>
    
    <pre class="ebnf">
    MapType     = "map" "[" KeyType "]" ElementType .
    KeyType     = Type .
    </pre>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/walk/expr.go

    	default:
    		// fast version takes key by value.
    		return key
    	}
    }
    
    // walkIndexMap walks an OINDEXMAP node.
    // It replaces m[k] with *map{access1,assign}(maptype, m, &k)
    func walkIndexMap(n *ir.IndexExpr, init *ir.Nodes) ir.Node {
    	n.X = walkExpr(n.X, init)
    	n.Index = walkExpr(n.Index, init)
    	map_ := n.X
    	t := map_.Type()
    	fast := mapfast(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  4. doc/go_spec.html

    implements the interface.
    </p>
    
    <h3 id="Map_types">Map types</h3>
    
    <p>
    A map is an unordered group of elements of one type, called the
    element type, indexed by a set of unique <i>keys</i> of another type,
    called the key type.
    The value of an uninitialized map is <code>nil</code>.
    </p>
    
    <pre class="ebnf">
    MapType     = "map" "[" KeyType "]" ElementType .
    KeyType     = Type .
    </pre>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (1)
  5. src/cmd/compile/internal/walk/builtin.go

    }
    
    // walkMakeMap walks an OMAKEMAP node.
    func walkMakeMap(n *ir.MakeExpr, init *ir.Nodes) ir.Node {
    	t := n.Type()
    	hmapType := reflectdata.MapType()
    	hint := n.Len
    
    	// var h *hmap
    	var h ir.Node
    	if n.Esc() == ir.EscNone {
    		// Allocate hmap on stack.
    
    		// var hv hmap
    		// h = &hv
    		h = stackTempAddr(init, hmapType)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  6. common-protos/k8s.io/api/apps/v1beta2/generated.proto

      optional int32 replicas = 1;
    
      // selector is a label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
      // +optional
      // +mapType=atomic
      map<string, string> selector = 2;
    
      // label selector for pods that should match the replicas count. This is a serializated
      // version of both map-based and more expressive set-based selectors. This is done to
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/apps/v1beta2/generated.proto

      optional int32 replicas = 1;
    
      // selector is a label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
      // +optional
      // +mapType=atomic
      map<string, string> selector = 2;
    
      // label selector for pods that should match the replicas count. This is a serializated
      // version of both map-based and more expressive set-based selectors. This is done to
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 36.6K bytes
    - Viewed (0)
  8. src/cmd/internal/dwarf/dwarf.go

    		DW_CHILDREN_yes,
    		[]dwAttrForm{
    			{DW_AT_name, DW_FORM_string},
    			{DW_AT_type, DW_FORM_ref_addr},
    			{DW_AT_go_kind, DW_FORM_data1},
    			{DW_AT_go_runtime_type, DW_FORM_addr},
    		},
    	},
    
    	/* MAPTYPE */
    	{
    		DW_TAG_typedef,
    		DW_CHILDREN_no,
    		[]dwAttrForm{
    			{DW_AT_name, DW_FORM_string},
    			{DW_AT_type, DW_FORM_ref_addr},
    			{DW_AT_go_kind, DW_FORM_data1},
    			{DW_AT_go_runtime_type, DW_FORM_addr},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 43K bytes
    - Viewed (0)
  9. src/runtime/export_test.go

    	// We should have a series of filled and emptyOne cells, followed by
    	// a series of emptyRest cells.
    	h := *(**hmap)(unsafe.Pointer(&m))
    	i := any(m)
    	t := *(**maptype)(unsafe.Pointer(&i))
    
    	for x := 0; x < 1<<h.B; x++ {
    		b0 := (*bmap)(add(h.buckets, uintptr(x)*uintptr(t.BucketSize)))
    		n := 0
    		for b := b0; b != nil; b = b.overflow(t) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/extensions/v1beta1/generated.proto

      optional int32 replicas = 1;
    
      // selector is a label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
      // +optional
      // +mapType=atomic
      map<string, string> selector = 2;
    
      // label selector for pods that should match the replicas count. This is a serializated
      // version of both map-based and more expressive set-based selectors. This is done to
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 45.4K bytes
    - Viewed (0)
Back to top