CUBA
ruba::algs Class Reference

Static Public Member Functions

template<typename T >
static int compare (const vector< T > &v1, const vector< T > &v2)
 
template<class T >
static string widthify (const T &x, const ushort &width=0, const alignment &c=alignment::CENTERED, const char &fill=' ')
 

Member Function Documentation

◆ compare()

template<typename T >
int ruba::algs::compare ( const vector< T > &  v1,
const vector< T > &  v2 
)
static

compare two vectors. Remark that we assume the sizes of these two vectors are the same.

Parameters
v1
v2
is_symmetry
Returns
int -1: v1 < v2 0: v1 = v2 +1: v1 > v2;

*iv1 == *iv2


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