Added Equals() function, which sadly I haven't tested
(I just stole it from StorageKit::BasicTest, the version of which has been proven many times over ;-) git-svn-id: file:///srv/svn/repos/haiku/trunk/current@417 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -15,6 +15,16 @@
|
|||||||
// use it inline in tests if necessary.
|
// use it inline in tests if necessary.
|
||||||
status_t DecodeResult(status_t result);
|
status_t DecodeResult(status_t result);
|
||||||
|
|
||||||
|
// First parameter is equal to the second or third
|
||||||
|
template<typename A, typename B, typename C>
|
||||||
|
static
|
||||||
|
inline
|
||||||
|
bool
|
||||||
|
Equals(const A &a, const B &b, const C &c)
|
||||||
|
{
|
||||||
|
return (a == b || a == c);
|
||||||
|
}
|
||||||
|
|
||||||
// Returns a string version of the given integer
|
// Returns a string version of the given integer
|
||||||
std::string IntToStr(int i);
|
std::string IntToStr(int i);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user