mirror of https://github.com/odrling/Aegisub
Add mid() template to util namespace.
Originally committed to SVN as r5278.
This commit is contained in:
parent
bb4aa727d3
commit
b47dd1e220
|
@ -32,6 +32,8 @@
|
||||||
namespace agi {
|
namespace agi {
|
||||||
namespace util {
|
namespace util {
|
||||||
|
|
||||||
|
template<typename T> inline T mid(T a, T b, T c) { return std::max(a, std::min(b, c)); }
|
||||||
|
|
||||||
const std::string DirName(const std::string& path);
|
const std::string DirName(const std::string& path);
|
||||||
void Rename(const std::string& from, const std::string& to);
|
void Rename(const std::string& from, const std::string& to);
|
||||||
void time_log(agi_timeval &tv);
|
void time_log(agi_timeval &tv);
|
||||||
|
|
Loading…
Reference in New Issue