Home | History | Annotate | Download | only in base

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
395 // Specialize PassedWrapper for std::unique_ptr used by base::Passed().
681 // We offer 2 syntaxes for calling Passed(). The first takes an rvalue and
684 // to avoid having to write Passed(std::move(scoper)).
686 // Both versions of Passed() prevent T from being an lvalue reference. The first
692 static inline internal::PassedWrapper<T> Passed(T&& scoper) {
698 static inline internal::PassedWrapper<T> Passed(T* scoper) {