Files
cpp-course/modules/03_functions/include/overloading.hpp
T

14 lines
380 B
C++

#pragma once
#include <string>
namespace functions {
[[nodiscard]] auto max_value(int a, int b) -> int;
[[nodiscard]] auto max_value(double a, double b) -> double;
[[nodiscard]] auto max_value(const std::string& a, const std::string& b) -> std::string;
[[nodiscard]] auto area(int side) -> int;
[[nodiscard]] auto area(int width, int height) -> int;
} // namespace functions