| 211 | |
| 212 | template <typename... Args> |
| 213 | OverloadDecl MakeOverloadDecl(Type result, Args&&... args) { |
| 214 | OverloadDecl overload_decl; |
| 215 | overload_decl.set_result(std::move(result)); |
| 216 | overload_decl.set_member(false); |
| 217 | auto& mutable_args = overload_decl.mutable_args(); |
| 218 | mutable_args.reserve(sizeof...(Args)); |
| 219 | (mutable_args.push_back(std::forward<Args>(args)), ...); |
| 220 | return overload_decl; |
| 221 | } |
| 222 | |
| 223 | // Prefer the version of `MakeOverloadDecl` that does not specify the id. |
| 224 | // This version is less robust than the version that automatically generates a |