Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Swap (0.16 sec)

  1. doc/go_mem.html

    Other memory operations are <i>write-like</i>, including write, atomic write, mutex unlock, channel send, and channel close.
    Some, such as atomic compare-and-swap, are both read-like and write-like.
    </p>
    
    <p>
    A <i>goroutine execution</i> is modeled as a set of memory operations executed by a single goroutine.
    </p>
    
    <p>
    <b>Requirement 1</b>:
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:42 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  2. doc/go_spec.html

    corresponding type parameters have corresponding constraints.
    </p>
    
    <pre>
    type Pair[A, B any] struct {
    	a A
    	b B
    }
    
    func (p Pair[A, B]) Swap() Pair[B, A]  { … }  // receiver declares A, B
    func (p Pair[First, _]) First() First  { … }  // receiver declares First, corresponds to A in Pair
    </pre>
    
    <h2 id="Expressions">Expressions</h2>
    
    <p>
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
Back to top