Home | History | Annotate | Download | only in base

Lines Matching refs:scoper

354 // PassedWrapper is a copyable adapter for a scoper that ignores const.
376 // scoper to a Callback and allow the Callback to execute once.
380 explicit PassedWrapper(T&& scoper)
381 : is_valid_(true), scoper_(std::move(scoper)) {}
400 explicit PassedWrapper(std::unique_ptr<T, D> scoper)
401 : is_valid_(true), scoper_(std::move(scoper)) {}
420 explicit PassedWrapper(std::vector<std::unique_ptr<T, D>, A> scoper)
421 : is_valid_(true), scoper_(std::move(scoper)) {}
440 explicit PassedWrapper(std::map<K, std::unique_ptr<T, D>, C, A> scoper)
441 : is_valid_(true), scoper_(std::move(scoper)) {}
683 // rvalues. The second takes a pointer to the scoper and is just syntactic sugar
684 // to avoid having to write Passed(std::move(scoper)).
692 static inline internal::PassedWrapper<T> Passed(T&& scoper) {
693 return internal::PassedWrapper<T>(std::move(scoper));
698 static inline internal::PassedWrapper<T> Passed(T* scoper) {
699 return internal::PassedWrapper<T>(std::move(*scoper));