Files
cpp-course/modules/03_functions/src/overloading.cpp
T

12 lines
466 B
C++
Raw Normal View History

2026-08-11 17:40:36 +03:00
#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