Solved: 19 - References
This commit is contained in:
@@ -2,9 +2,19 @@
|
|||||||
|
|
||||||
namespace pointers {
|
namespace pointers {
|
||||||
|
|
||||||
auto double_value(const int& value) -> int { (void)value; return 0; }
|
auto double_value(const int& value) -> int {
|
||||||
void increment(int& value) { (void)value; }
|
return value * 2;
|
||||||
auto max_ref(const int& a, const int& b) -> const int& { (void)a; (void)b; return a; }
|
}
|
||||||
auto sum_three(const int& a, const int& b, const int& c) -> int { (void)a; (void)b; (void)c; return 0; }
|
void increment(int& value) {
|
||||||
|
value++;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto max_ref(const int& a, const int& b) -> const int& {
|
||||||
|
return a > b ? a : b;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto sum_three(const int& a, const int& b, const int& c) -> int {
|
||||||
|
return a + b + c;
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace pointers
|
} // namespace pointers
|
||||||
|
|||||||
Reference in New Issue
Block a user