- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 209 for nelem (0.03 sec)
-
src/go/types/map.go
// A Map represents a map type. type Map struct { key, elem Type } // NewMap returns a new map for the given key and element types. func NewMap(key, elem Type) *Map { return &Map{key: key, elem: elem} } // Key returns the key type of map m. func (m *Map) Key() Type { return m.key } // Elem returns the element type of map m. func (m *Map) Elem() Type { return m.elem } func (t *Map) Underlying() Type { return t }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 781 bytes - Viewed (0) -
src/go/types/chan.go
// Dir returns the direction of channel c. func (c *Chan) Dir() ChanDir { return c.dir } // Elem returns the element type of channel c. func (c *Chan) Elem() Type { return c.elem } func (c *Chan) Underlying() Type { return c }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 1K bytes - Viewed (0) -
ci/official/containers/linux_arm64/devel.usertools/squash_testlogs.py
).group(0) for testsuite in r: testsuite._elem.set("source_file", source_file) # Remove empty testcases for p in testsuite._elem.xpath(".//testcase"): if not len(p): # pylint: disable=g-explicit-length-test testsuite._elem.remove(p) # Change "testsuite > testcase,system-out" to "testsuite > testcase > error" for p in testsuite._elem.xpath(".//system-out"):
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Sep 18 19:00:37 UTC 2023 - 4.8K bytes - Viewed (0) -
test/fixedbugs/issue17449.go
func (l *PriorityList) remove(i int) interface{} { elem := l.elems[i] l.elems = append(l.elems[:i], l.elems[i+1:]...) return elem } func (l *PriorityList) Next() interface{} { return l.remove(l.Len() - 1) } var l *PriorityList func Foo() { // It would fail here if instrumented code (including inline-label) was copied. for elem := l.Next(); elem != nil; elem = l.Next() { }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/array.go
package types2 // An Array represents an array type. type Array struct { len int64 elem Type } // NewArray returns a new array type for the given element type and length. // A negative length indicates an unknown length. func NewArray(elem Type, len int64) *Array { return &Array{len: len, elem: elem} } // Len returns the length of array a. // A negative result indicates an unknown length.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 01 22:17:50 UTC 2021 - 803 bytes - Viewed (0) -
src/cmd/compile/internal/types2/map.go
// A Map represents a map type. type Map struct { key, elem Type } // NewMap returns a new map for the given key and element types. func NewMap(key, elem Type) *Map { return &Map{key: key, elem: elem} } // Key returns the key type of map m. func (m *Map) Key() Type { return m.key } // Elem returns the element type of map m. func (m *Map) Elem() Type { return m.elem } func (t *Map) Underlying() Type { return t }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 01 22:17:50 UTC 2021 - 659 bytes - Viewed (0) -
src/go/types/slice.go
package types // A Slice represents a slice type. type Slice struct { elem Type } // NewSlice returns a new slice type for the given element type. func NewSlice(elem Type) *Slice { return &Slice{elem: elem} } // Elem returns the element type of slice s. func (s *Slice) Elem() Type { return s.elem } func (s *Slice) Underlying() Type { return s }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 701 bytes - Viewed (0) -
test/fixedbugs/bug054.go
package main type Element interface { } type Vector struct { elem []Element; } func (v *Vector) At(i int) Element { return v.elem[i]; } type TStruct struct { name string; fields *Vector; } func (s *TStruct) field(i int) *TStruct { return s.fields.At(i).(*TStruct); } func main() { v := new(Vector); v.elem = make([]Element, 10); t := new(TStruct); t.name = "hi";
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 17 04:48:57 UTC 2012 - 669 bytes - Viewed (0) -
src/go/types/pointer.go
type Pointer struct { base Type // element type } // NewPointer returns a new pointer type for the given element (base) type. func NewPointer(elem Type) *Pointer { return &Pointer{base: elem} } // Elem returns the element type for the given pointer p. func (p *Pointer) Elem() Type { return p.base } func (p *Pointer) Underlying() Type { return p }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 761 bytes - Viewed (0) -
test/typeparam/orderedmapsimp.dir/a.go
// the receiver stops reading them. func Ranger[Elem any]() (*Sender[Elem], *Receiver[Elem]) { c := make(chan Elem) d := make(chan struct{}) s := &Sender[Elem]{ values: c, done: d, } r := &Receiver[Elem]{ values: c, done: d, } runtime.SetFinalizer(r, (*Receiver[Elem]).finalize) return s, r } // A Sender is used to send values to a Receiver.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jul 28 21:40:40 UTC 2021 - 5.5K bytes - Viewed (0)