mirror of
https://github.com/lifting-bits/remill
synced 2026-06-21 13:56:07 +00:00
17 lines
342 B
Plaintext
17 lines
342 B
Plaintext
#pragma once
|
|
|
|
namespace std {
|
|
|
|
// http://www.en.cppreference.com/w/cpp/algorithm/min.html
|
|
template <class T>
|
|
const T &min(const T &a, const T &b) {
|
|
return (b < a) ? b : a;
|
|
}
|
|
|
|
// http://www.en.cppreference.com/w/cpp/algorithm/max.html
|
|
template <class T>
|
|
const T &max(const T &a, const T &b) {
|
|
return (a < b) ? b : a;
|
|
}
|
|
|
|
} // namespace std |