We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 377b12d commit 648354fCopy full SHA for 648354f
llvm/include/llvm/ADT/STLForwardCompat.h
@@ -57,8 +57,8 @@ using type_identity_t // NOLINT(readability-identifier-naming)
57
// C++23.
58
template <typename Optional, typename Function,
59
typename Value = typename llvm::remove_cvref_t<Optional>::value_type>
60
-auto transformOptional(Optional &&O, Function &&F)
61
- -> std::optional<std::invoke_result_t<Function, Value>> {
+std::optional<std::invoke_result_t<Function, Value>>
+transformOptional(Optional &&O, Function &&F) {
62
if (O) {
63
return F(*std::forward<Optional>(O));
64
}
0 commit comments