Evo C++ Library v0.5.1
Static Public Member Functions | List of all members
DataEqual< T, B > Struct Template Reference

#include <evo/impl/container.h>

Detailed Description

template<class T, bool B = IsPodType<T>::value>
struct evo::DataEqual< T, B >

Data equality helper.

Template Parameters
TData type to compare – must be a POD type or implement operator==()
BInferred from T

Static Public Member Functions

static bool equal (const T *data1, const T *data2, ulong size)
 Compare array data for equality. More...
 

Member Function Documentation

◆ equal()

static bool equal ( const T *  data1,
const T *  data2,
ulong  size 
)
inlinestatic

Compare array data for equality.

Parameters
data1Data to compare
data2Data to compare to
sizeSize to compare as item count
Returns
Whether equals, true if size=0

The documentation for this struct was generated from the following file: