Files @ r12114:e7a5a447d429
Branch filter:

Location: cpp/openttd-patchpack/source/src/core/string_compare_type.hpp

translators
(svn r16533) -Update: WebTranslator2 update to 2009-06-07 17:45:47
icelandic - 8 fixed, 50 changed by scrooge (58)
russian - 8 fixed, 28 changed by Lone Wolf (36)
serbian - 100 fixed by etran (100)
/* $Id$ */

/** @file string_compare_type.hpp Comparator class for "const char *" so it can be used as a key for std::map */

#ifndef STRING_COMPARE_TYPE_HPP
#define STRING_COMPARE_TYPE_HPP

struct StringCompare {
	bool operator () (const char *a, const char *b) const
	{
		return strcmp(a, b) < 0;
	}
};

#endif /* STRING_COMPARE_TYPE_HPP */