add min to math module
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#include "hack/math/max.hpp"
|
||||
#include "hack/math/math.hpp"
|
||||
#include "hack/logger/logger.hpp"
|
||||
|
||||
auto main(int argc, char *argv[]) -> int
|
||||
@@ -8,6 +8,9 @@ auto main(int argc, char *argv[]) -> int
|
||||
hack::log()(hack::math::max(4, 5));
|
||||
hack::log()(hack::math::max(c, b));
|
||||
|
||||
hack::log()(hack::math::min(4, 5));
|
||||
hack::log()(hack::math::min(c, b));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,10 +2,10 @@ executable(
|
||||
meson.project_name(),
|
||||
# 'examples/audio/main.cpp',
|
||||
# 'examples/concepts/main.cpp',
|
||||
# 'examples/math/main.cpp',
|
||||
'examples/math/main.cpp',
|
||||
# 'examples/range/main.cpp',
|
||||
# 'examples/patterns/main.cpp',
|
||||
'examples/logger/main.cpp',
|
||||
# 'examples/logger/main.cpp',
|
||||
# 'examples/exception/main.cpp',
|
||||
dependencies : deps,
|
||||
cpp_args: args,
|
||||
|
||||
Reference in New Issue
Block a user