Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 258 for elim (0.04 sec)

  1. 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)
  2. 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)
  3. 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)
  4. platforms/documentation/docs/src/snippets/native-binaries/tool-chains/groovy/src/main/cpp/main.cpp

            std::cout << "Hello from clang!" << std::endl;
        #elif defined(__GNUC__) && defined(__MINGW32__)
            std::cout << "Hello from mingw!" << std::endl;
        #elif defined(__GNUC__) && defined(__CYGWIN__)
            std::cout << "Hello from gcc cygwin!" << std::endl;
        #elif defined(__GNUC__)
            std::cout << "Hello from gcc!" << std::endl;
        #elif defined(_MSC_VER)
            std::cout << "Hello from visual c++!" << std::endl;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 615 bytes
    - Viewed (0)
  5. src/reflect/nih_test.go

    	v := ValueOf((*nih)(nil))
    	v.Elem()
    	shouldPanic("reflect: call of reflect.Value.Field on zero Value", func() { v.Elem().Field(0) })
    
    	v = ValueOf(&global_nih)
    	if got := v.Elem().Field(1).Int(); got != 7 {
    		t.Fatalf("got %d, want 7", got)
    	}
    
    	v = ValueOf((*nih)(unsafe.Pointer(new(int))))
    	shouldPanic("reflect: reflect.Value.Elem on an invalid notinheap pointer", func() { v.Elem() })
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 31 01:16:54 UTC 2022
    - 1004 bytes
    - Viewed (0)
  6. src/syscall/syscall_linux_mipsx.go

    	if errno != ENOSYS {
    		return errno
    	}
    
    	rl := rlimit32{}
    	if rlim.Cur == rlimInf64 {
    		rl.Cur = rlimInf32
    	} else if rlim.Cur < uint64(rlimInf32) {
    		rl.Cur = uint32(rlim.Cur)
    	} else {
    		return EINVAL
    	}
    	if rlim.Max == rlimInf64 {
    		rl.Max = rlimInf32
    	} else if rlim.Max < uint64(rlimInf32) {
    		rl.Max = uint32(rlim.Max)
    	} else {
    		return EINVAL
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. src/syscall/syscall_linux_arm64.go

    func Getrlimit(resource int, rlim *Rlimit) error {
    	err := prlimit(0, resource, nil, rlim)
    	if err != ENOSYS {
    		return err
    	}
    	return getrlimit(resource, rlim)
    }
    
    // setrlimit prefers the prlimit64 system call. See issue 38604.
    func setrlimit(resource int, rlim *Rlimit) error {
    	err := prlimit(0, resource, rlim, nil)
    	if err != ENOSYS {
    		return err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  10. src/internal/types/testdata/examples/inference.go

    	// last.
    	related2(1.2, []float64{})
    	related2(1.0, []int{})
    	related2 /* ERROR "Slice (type []int) does not satisfy interface{[]Elem}" */ (float64(1.0), []int{}) // TODO(gri) better error message
    }
    
    type List[P any] []P
    
    func related3[Elem any, Slice []Elem | List[Elem]]() Slice { return nil }
    
    func _() {
    	// related3 can be instantiated explicitly
    	related3[int, []int]()
    	related3[byte, List[byte]]()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 02 16:49:45 UTC 2023
    - 4.3K bytes
    - Viewed (0)
Back to top