Skip to content

A C variadic templated implementation of max(), min() for integral types, floating point types, and strings, by overloading the function call operator

License

Notifications You must be signed in to change notification settings

massimo-marino/min-max-function-overload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

min-max-function-overload

C implementation of a variadic templated function of max(), min() for integral and floating point types, and strings, by overloading the function call operator.

Requirements

The cmake file compiles with -std=c 14 (but it would be fine also with -std=c 11).

Install and Run Example

$ git clone https://github.com/massimo-marino/min-max-function-overload.git
$ cd min-max-function-overload
$ mkdir build
$ cd build
$ cmake ..
$ make
$ cd src
$ cd unitTests
$ ./unitTests

About

A C variadic templated implementation of max(), min() for integral types, floating point types, and strings, by overloading the function call operator

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published