Home | History | Annotate | Download | only in base

Lines Matching defs:Passed

28 // passed when invoking the callback with Run().
31 // // two must be passed when calling Run() on the callback object.
83 // reference with repeating callbacks--is used instead of base::Passed().
88 "Ensure |Arg| is bound using base::Passed(), not std::move().");
143 // Transform |T| into `Unwrapped` type, which is passed to the target function.
317 // When the callback is called, the object is passed as a raw pointer.
390 // Passed() is for transferring movable-but-not-copyable types (eg. unique_ptr)
393 // Callback::Run() twice on a Callback that was created with a Passed()
397 // Note that Passed() is not necessary with BindOnce(), as std::move() does the
398 // same thing. Avoid Passed() in favor of std::move() with BindOnce().
400 // EXAMPLE OF Passed():
410 // Closure cb = Bind(&TakesOwnership, Passed(&f));
417 // cb = Bind(&TakesOwnership, Passed(CreateFoo()));
424 // We offer 2 syntaxes for calling Passed(). The first takes an rvalue and
427 // to avoid having to write Passed(std::move(scoper)).
429 // Both versions of Passed() prevent T from being an lvalue reference. The first
433 static inline internal::PassedWrapper<T> Passed(T&& scoper) {
437 static inline internal::PassedWrapper<T> Passed(T* scoper) {