Lines Matching refs:Passed
15 // The wrapper functions are base::Unretained(), base::Owned(), base::Passed(),
24 // Passed() is for transferring movable-but-not-copyable types (eg. scoped_ptr)
27 // Callback::Run() twice on a Callback that was created with a Passed()
106 // EXAMPLE OF Passed():
115 // Closure cb = Bind(&TakesOwnership, Passed(&f));
122 // cb = Bind(&TakesOwnership, Passed(CreateFoo()));
129 // Passed() is particularly useful with PostTask() when you are transferring
372 // bound to a Callback. We guard this explicitly at the call of Passed()
373 // to make for clear errors. Things not given to Passed() will be forwarded
620 // We offer 2 syntaxes for calling Passed(). The first takes an rvalue and
623 // to avoid having to write Passed(std::move(scoper)).
625 // Both versions of Passed() prevent T from being an lvalue reference. The first
631 static inline internal::PassedWrapper<T> Passed(T&& scoper) {
637 static inline internal::PassedWrapper<T> Passed(T* scoper) {