Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 92 for DELETE (1.18 sec)

  1. test/fixedbugs/issue58341.go

    // license that can be found in the LICENSE file.
    
    package p
    
    type S[T comparable] struct {
    	m map[T]T
    }
    
    func (s S[T]) M1(node T) {
    	defer delete(s.m, node)
    }
    
    func (s S[T]) M2(node T) {
    	defer func() {
    		delete(s.m, node)
    	}()
    }
    
    func (s S[T]) M3(node T) {
    	defer f(s.m, node)
    }
    
    //go:noinline
    func f[T comparable](map[T]T, T) {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 13 21:28:54 UTC 2023
    - 471 bytes
    - Viewed (0)
  2. src/sync/map_test.go

    	case opLoadOrStore:
    		return m.LoadOrStore(c.k, c.v)
    	case opLoadAndDelete:
    		return m.LoadAndDelete(c.k)
    	case opDelete:
    		m.Delete(c.k)
    		return nil, false
    	case opSwap:
    		return m.Swap(c.k, c.v)
    	case opCompareAndSwap:
    		if m.CompareAndSwap(c.k, c.v, rand.Int()) {
    			m.Delete(c.k)
    			return c.v, true
    		}
    		return nil, false
    	case opCompareAndDelete:
    		if m.CompareAndDelete(c.k, c.v) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 01 15:34:22 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/vcstest/git/issue61415.txt

    git rm -r nested
    git commit -m 'nested: delete subdirectory'
    
    git show-ref --tags --heads
    cmp stdout .git-refs
    
    git log --pretty=oneline
    cmp stdout .git-log
    
    -- .git-refs --
    f213069baa68ec26412fb373c7cf6669db1f8e69 refs/heads/main
    08a4fa6bb9c04ffba03b26ae427b0d6335d90a2a refs/tags/has-nested
    -- .git-log --
    f213069baa68ec26412fb373c7cf6669db1f8e69 nested: delete subdirectory
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 22:15:45 UTC 2023
    - 928 bytes
    - Viewed (0)
  4. test/fixedbugs/issue62203.go

    	m["foo"] = struct{}{}
    
    	// Remove that 49th entry. m is still growing to 8 buckets,
    	// but a clone of m will only have 4 buckets because it
    	// only needs to fit 48 entries.
    	delete(m, "foo")
    
    	// Clone an 8-bucket map to a 4-bucket map.
    	_ = maps.Clone(m)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 16:10:03 UTC 2023
    - 688 bytes
    - Viewed (0)
  5. src/expvar/expvar.go

    	if iv, ok := i.(*Float); ok {
    		iv.Add(delta)
    	}
    }
    
    // Delete deletes the given key from the map.
    func (v *Map) Delete(key string) {
    	v.keysMu.Lock()
    	defer v.keysMu.Unlock()
    	i, found := slices.BinarySearch(v.keys, key)
    	if found {
    		v.keys = slices.Delete(v.keys, i, i+1)
    		v.m.Delete(key)
    	}
    }
    
    // Do calls f for each entry in the map.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 21:32:11 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  6. test/rename1.go

    	)
    	_, _ = n, y
    }
    
    const (
    	append     = 1
    	bool       = 2
    	byte       = 3
    	complex    = 4
    	complex64  = 5
    	complex128 = 6
    	cap        = 7
    	close      = 8
    	delete     = 9
    	error      = 10
    	false      = 11
    	float32    = 12
    	float64    = 13
    	imag       = 14
    	int        = 15
    	int8       = 16
    	int16      = 17
    	int32      = 18
    	int64      = 19
    	len        = 20
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 19 14:07:00 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  7. src/runtime/lock_js.go

    		mp = acquirem()
    		delete(notes, n)
    		delete(notesWithTimeout, n)
    		releasem(mp)
    
    		return n.key == note_woken
    	}
    
    	for n.key != note_woken {
    		mp := acquirem()
    		notes[n] = gp
    		releasem(mp)
    
    		gopark(nil, nil, waitReasonZero, traceBlockGeneric, 1)
    
    		mp = acquirem()
    		delete(notes, n)
    		releasem(mp)
    	}
    	return true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:02:20 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  8. src/internal/singleflight/singleflight.go

    	return ch
    }
    
    // doCall handles the single call for a key.
    func (g *Group) doCall(c *call, key string, fn func() (any, error)) {
    	c.val, c.err = fn()
    
    	g.mu.Lock()
    	c.wg.Done()
    	if g.m[key] == c {
    		delete(g.m, key)
    	}
    	for _, ch := range c.chans {
    		ch <- Result{c.val, c.err, c.dups > 0}
    	}
    	g.mu.Unlock()
    }
    
    // ForgetUnshared tells the singleflight to forget about a key if it is not
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 30 20:49:56 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/swig/testdata/callback/main.h

    	virtual std::string run() { return "Callback::run"; }
    };
    
    class Caller {
    private:
    	Callback *callback_;
    public:
    	Caller(): callback_(0) { }
    	~Caller() { delCallback(); }
    	void delCallback() { delete callback_; callback_ = 0; }
    	void setCallback(Callback *cb) { delCallback(); callback_ = cb; }
    	std::string call();
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:07 UTC 2023
    - 529 bytes
    - Viewed (0)
  10. src/cmd/vendor/github.com/google/pprof/internal/driver/html/common.css

      color: red;
    }
    .dialog input {
      margin: 10px;
      font-size: inherit;
    }
    .dialog button {
      margin-left: 10px;
      font-size: inherit;
    }
    #save-dialog, #delete-dialog {
      width: 50%;
      max-width: 20em;
    }
    #delete-prompt {
      padding: 10px;
    }
    
    #content {
      overflow-y: scroll;
      padding: 1em;
    }
    #top {
      overflow-y: scroll;
    }
    #graph {
      overflow: hidden;
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 18:58:12 UTC 2022
    - 5.5K bytes
    - Viewed (0)
Back to top