Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 183 for nelem (0.16 sec)

  1. 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)
  2. 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)
  3. test/typeparam/orderedmap.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: Tue Mar 01 19:45:34 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  4. src/internal/reflectlite/set_test.go

    func (mapError) Error() string { return "mapError" }
    
    var _ error = mapError{}
    var _ error = new(mapError)
    
    func TestImplements(t *testing.T) {
    	for _, tt := range implementsTests {
    		xv := TypeOf(tt.x).Elem()
    		xt := TypeOf(tt.t).Elem()
    		if b := xv.Implements(xt); b != tt.b {
    			t.Errorf("(%s).Implements(%s) = %v, want %v", TypeString(xv), TypeString(xt), b, tt.b)
    		}
    	}
    }
    
    var assignableTests = []struct {
    	x any
    	t any
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/walk/temp.go

    // allocated temporary variable of type [len]elem. This variable is
    // initialized, and elem must not contain pointers.
    func stackBufAddr(len int64, elem *types.Type) *ir.AddrExpr {
    	if elem.HasPointers() {
    		base.FatalfAt(base.Pos, "%v has pointers", elem)
    	}
    	tmp := typecheck.TempAt(base.Pos, ir.CurFunc, types.NewArray(elem, len))
    	return typecheck.Expr(typecheck.NodAddr(tmp)).(*ir.AddrExpr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 16:41:23 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  6. tensorflow/cc/framework/ops.cc

      size_t offset = 0;
      for (auto const& e : v) {
        Tensor elem = e.tensor;
        if (first.tensor.dtype() == DT_STRING) {
          for (int i = 0; i < elem.NumElements(); ++i) {
            t.flat<tstring>()(offset + i) = elem.flat<tstring>()(i);
          }
          offset += elem.NumElements();
        } else {
          std::copy_n(elem.tensor_data().data(), elem.TotalBytes(),
                      const_cast<char*>(t.tensor_data().data()) + offset);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modload/search.go

    				return nil
    			}
    
    			want := true
    			elem := ""
    
    			// Don't use GOROOT/src but do walk down into it.
    			if pkgDir == root {
    				if importPathRoot == "" {
    					return nil
    				}
    			} else {
    				// Avoid .foo, _foo, and testdata subdirectory trees.
    				_, elem = filepath.Split(pkgDir)
    				if strings.HasPrefix(elem, ".") || strings.HasPrefix(elem, "_") || elem == "testdata" {
    					want = false
    				}
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:15 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  8. src/path/filepath/path_unix.go

    	return strings.Split(path, string(ListSeparator))
    }
    
    func abs(path string) (string, error) {
    	return unixAbs(path)
    }
    
    func join(elem []string) string {
    	// If there's a bug here, fix the logic in ./path_plan9.go too.
    	for i, e := range elem {
    		if e != "" {
    			return Clean(strings.Join(elem[i:], string(Separator)))
    		}
    	}
    	return ""
    }
    
    func sameWord(a, b string) bool {
    	return a == b
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 970 bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/it/admin/CrawlerLogTests.java

            for (Map<String, Object> elem : jobLogList) {
                deleteMethod("/api/admin/joblog/log/" + elem.get("id"));
            }
    
            final List<Map<String, Object>> crawlingInfoList = readCrawlingInfo(webConfigId);
            for (Map<String, Object> elem : crawlingInfoList) {
                deleteMethod("/api/admin/crawlinginfo/log/" + elem.get("id"));
            }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. src/go/types/mono.go

    	// parameters that it's implicitly parameterized by.
    	for scope := obj.Parent(); scope != root; scope = scope.Parent() {
    		for _, elem := range scope.elems {
    			if elem, ok := elem.(*TypeName); ok && !elem.IsAlias() && cmpPos(elem.Pos(), obj.Pos()) < 0 {
    				if tpar, ok := elem.Type().(*TypeParam); ok {
    					if idx < 0 {
    						idx = len(w.vertices)
    						w.vertices = append(w.vertices, monoVertex{obj: obj})
    					}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top