func (alloc *Allocator) tryOps(ops *[]operation) {
	for i := 0; i < len(*ops); {
		op := (*ops)[i]
		if !op.Try(alloc) {
			i++
			continue
		}
		*ops = append((*ops)[:i], (*ops)[i+1:]...)
	}
}
// Try all operations in a queue
Try all operations in a queue
// Try all operations in a queue
func (alloc *Allocator) tryOps(ops *[]operation) {
	for i := 0; i < len(*ops); {
		op := (*ops)[i]
		if !op.Try(alloc) {
			i++
			continue
		}
		*ops = append((*ops)[:i], (*ops)[i+1:]...)
	}
}
func ( alloc * Allocator ) tryOps ( ops * [ ] operation ) { for i := 0 ; i < len ( * ops ) ; { op := ( * ops ) [ i ] if ! op . Try ( alloc ) { i ++ continue } * ops = append ( ( * ops ) [ : i ] , ( * ops ) [ i + 1 : ] ... ) } }
Try all operations in a queue
Try all operations in a queue