template<class Needle>
class Contains;
-template<class Exception,
- class ErrorHandler>
-class Guard;
-
}
/**
return Contains(std::forward<Needle>(needle));
}
-template<class Exception,
- class ErrorHandler,
- class Guard = detail::Guard<Exception,
- typename std::decay<ErrorHandler>::type>>
-Guard guard(ErrorHandler&& handler) {
- return Guard(std::forward<ErrorHandler>(handler));
-}
-
}} // folly::gen
#include "folly/experimental/Gen-inl.h"