Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 217 for elem4 (0.25 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. src/cmd/compile/internal/syntax/nodes.go

    		ElemList []Expr
    		expr
    	}
    
    	// [Len]Elem
    	ArrayType struct {
    		// TODO(gri) consider using Name{"..."} instead of nil (permits attaching of comments)
    		Len  Expr // nil means Len is ...
    		Elem Expr
    		expr
    	}
    
    	// []Elem
    	SliceType struct {
    		Elem Expr
    		expr
    	}
    
    	// ...Elem
    	DotsType struct {
    		Elem Expr
    		expr
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:38 UTC 2023
    - 9K bytes
    - Viewed (0)
  8. 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)
  9. src/cmd/gofmt/rewrite.go

    	case reflect.Struct:
    		v := reflect.New(p.Type()).Elem()
    		for i := 0; i < p.NumField(); i++ {
    			v.Field(i).Set(subst(m, p.Field(i), pos))
    		}
    		return v
    
    	case reflect.Pointer:
    		v := reflect.New(p.Type()).Elem()
    		if elem := p.Elem(); elem.IsValid() {
    			v.Set(subst(m, elem, pos).Addr())
    		}
    		return v
    
    	case reflect.Interface:
    		v := reflect.New(p.Type()).Elem()
    		if elem := p.Elem(); elem.IsValid() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 27 22:07:13 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/internal/typeparams/free.go

    	case *aliases.Alias:
    		return w.Has(aliases.Unalias(t))
    
    	case *types.Array:
    		return w.Has(t.Elem())
    
    	case *types.Slice:
    		return w.Has(t.Elem())
    
    	case *types.Struct:
    		for i, n := 0, t.NumFields(); i < n; i++ {
    			if w.Has(t.Field(i).Type()) {
    				return true
    			}
    		}
    
    	case *types.Pointer:
    		return w.Has(t.Elem())
    
    	case *types.Tuple:
    		n := t.Len()
    		for i := 0; i < n; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top