Solved: 35 - Auto Return
This commit is contained in:
1 parent
0a0c430ebe
commit
a72d03277e
1 file changed
+1
-3
@@ -6,9 +6,7 @@
|
||||
namespace cpp14 {
|
||||
|
||||
[[nodiscard]] inline auto copy_or_reference(const std::vector<int>& input) -> decltype(auto) {
|
||||
(void)input;
|
||||
static std::vector<int> empty;
|
||||
return empty;
|
||||
return input;
|
||||
}
|
||||
|
||||
[[nodiscard]] inline auto identity(int value) -> decltype(auto) { return value; }
|
||||
|
||||
Reference in new issue
Block a user