Skip to content

Commit

Permalink
add: IF_LOCAL
Browse files Browse the repository at this point in the history
  • Loading branch information
kogetsu7 committed Jan 3, 2025
1 parent b239d90 commit 6094901
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion template/template.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <bits/stdc++.h>
using namespace std;

using uint = unsigned;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
using ld = long double;
Expand All @@ -30,6 +30,12 @@ const ld PI = acos(-1);
#define all(a) (a).begin(), (a).end()
#define rall(a) (a).rbegin(), (a).rend()

#ifdef LOCAL
#define IF_LOCAL if constexpr (true)
#else
#define IF_LOCAL if constexpr (false)
#endif

template <class T> bool chmin(T& a, const T& b) {
return (a > b) ? (a = b, true) : false;
}
Expand Down

0 comments on commit 6094901

Please sign in to comment.