Skip to content

Commit

Permalink
changed isBetween() to use template
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelGunawan committed Oct 17, 2024
1 parent 8c19656 commit 8332989
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/tcframe/validator/number.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace tcframe {

bool isBetween(long long N, long long mn, long long mx) {
template<typename T>
bool isBetween(T &N, T &mn, T &mx) {
return N >= mn && N <= mx;
}

Expand Down

0 comments on commit 8332989

Please sign in to comment.