#include <evo/impl/container.h>
template<class T, bool B = IsPodType<T>::value>
struct evo::DataEqual< T, B >
Data equality helper.
- This compares POD types directly, or calls operator==() for non-POD types
- This is used by Evo containers to compare items for equality
- Template Parameters
-
T | Data type to compare – must be a POD type or implement operator==() |
B | Inferred from T |
|
static bool | equal (const T *data1, const T *data2, ulong size) |
| Compare array data for equality. More...
|
|
◆ equal()
static bool equal |
( |
const T * |
data1, |
|
|
const T * |
data2, |
|
|
ulong |
size |
|
) |
| |
|
inlinestatic |
Compare array data for equality.
- Parameters
-
data1 | Data to compare |
data2 | Data to compare to |
size | Size to compare as item count |
- Returns
- Whether equals, true if
size=0
The documentation for this struct was generated from the following file: