12 lines
466 B
C++
12 lines
466 B
C++
#include "overloading.hpp"
|
|||
|
|
|
||
|
|
namespace functions {
|
||
|
|
|
||
|
|
auto max_value(int a, int b) -> int { (void)a; (void)b; return 0; }
|
||
|
|
auto max_value(double a, double b) -> double { (void)a; (void)b; return 0.0; }
|
||
|
|
auto max_value(const std::string& a, const std::string& b) -> std::string { (void)a; (void)b; return {}; }
|
||
|
|
auto area(int side) -> int { (void)side; return 0; }
|
||
|
|
auto area(int width, int height) -> int { (void)width; (void)height; return 0; }
|
||
|
|
|
||
|
|
} // namespace functions
|