• Home
  • Raw
  • Download

Lines Matching +full:dangling +full:- +full:reference

2 // Use of this source code is governed by a BSD-style license that can be
18 // -----------------------------------------------------------------------------
20 // -----------------------------------------------------------------------------
26 // For a runnable object of n-arity, the base::Bind*() family allows partial
27 // application of the first m arguments. The remaining n - m arguments must be
42 // std::move(cb).Run(); // Identical to instance->F()
46 // -----------------------------------------------------------------------------
48 // -----------------------------------------------------------------------------
74 // reference to the fact that `&` is being used on an overloaded function.
82 // - a standard conversion sequence is a better conversion sequence than a
83 // user-defined conversion sequence or an ellipsis conversion sequence, and
84 // - a user-defined conversion sequence is a better conversion sequence than
99 // non-refcounted class, and to disable refcounting on arguments that are
101 // checked for dangling references (e.g. a pointer that points to an already
108 // Unretained() pointers will be checked for dangling pointers when the
127 // Unretained() does not allow dangling pointers, e.g.:
139 // runner_->PostTask(FROM_HERE, base::BindOnce(&AnotherClass::OnError,
142 // // runner_->PostTask(FROM_HERE,
149 // use-after-free, as `AnotherClass::OnError` might be invoked with a dangling
180 // Similar to `Unretained()`, but allows dangling pointers, e.g.:
194 // runner_->PostTask(FROM_HERE,
197 // handler->id(),
209 // using a dangling `handler` by making sure it is still contained in the
281 // RetainedRef() accepts a ref counted object and retains a reference to it.
324 // reference to the callback is deleted.
337 // bind and passes a reference to the object to the bound function.
360 // Without OwnedRef() it would not be possible to pass a mutable reference to an
367 // Passed() is for transferring movable-but-not-copyable types (eg. unique_ptr)
406 // Both versions of Passed() prevent T from being an lvalue reference. The first
409 // DEPRECATED - Do not use in new code. See https://crbug.com/1326449
434 // ml->PostTask(FROM_HERE, BindOnce(IgnoreResult(&DoSomething), 2);