Lines Matching refs:Ret
155 template <typename Ret, typename... Args, std::size_t N>
156 class Function<Ret(Args...), N> final {
165 using result_type = Ret;
176 Function(NoOpTag) : function_(details::bind_opaque_no_op<Ret, Args...>()) {}
184 template <typename F, typename = std::enable_if_t<std::is_invocable_r_v<Ret, F, Args...>>>
187 function_(details::bind_opaque_function_object<F, Ret, Args...>(f)) {}
189 template <typename F, typename = std::enable_if_t<std::is_invocable_r_v<Ret, F, Args...>>>
192 details::bind_opaque_function_object<F, Ret, Args...>(f)};
198 Function(const Function<Ret(Args...), M>& other)
202 auto& operator=(const Function<Ret(Args...), M>& other) {
220 Ret operator()(Args... args) const {
234 static_cast<Ret (*)(Args...)>(nullptr))}) {
236 instance, static_cast<Ret (*)(Args...)>(nullptr))};
242 details::bind_free_function<FreeFunction>(static_cast<Ret (*)(Args...)>(nullptr))}) {
244 details::bind_free_function<FreeFunction>(static_cast<Ret (*)(Args...)>(nullptr))};
254 using StoredFunction = Ret(void*, Args...);