#ifndef __MAX_H__
#define __MAX_H__

#include <cstring>

template <typename T>
const T& Max(const T& x, const T& y) {
    return x > y ? x : y;
}

/*
// Non-template overload specialized for C-strings
static inline const char* Max(const char* x, const char* y) {
    return strcmp(x, y) > 0 ? x : y;
}
*/

#endif
