cipra  1.2.1
A C++11 Unit Testing Framework based on Test::More
 All Classes Namespaces Functions Variables Typedefs Pages
Static Public Member Functions | List of all members
cipra::equals_trait< T, U > Struct Template Reference

A type trait that users can specialize to tell how to equality compare two different types. More...

#include <tests.hpp>

+ Collaboration diagram for cipra::equals_trait< T, U >:

Static Public Member Functions

static bool equals (const T &, const U &)
 Returns whether the left hand side equals the right hand side. More...
 

Detailed Description

template<typename T, typename U>
struct cipra::equals_trait< T, U >

A type trait that users can specialize to tell how to equality compare two different types.

Defaults to using operator==.

Version
1.1
Author
Patrick M. Niedzielski
Date
2013-04-20
Since
1.1
Template Parameters
TThe left-hand side type.
UThe right-hand side type.

Member Function Documentation

template<typename T , typename U >
static bool cipra::equals_trait< T, U >::equals ( const T &  ,
const U &   
)
inlinestatic

Returns whether the left hand side equals the right hand side.

Defaults to using operator==.

Author
Patrick M. Niedzielski
Date
2013-04-20
Since
1.1
Returns
Whether two objects are equal.