chsvlib
chsv helper source code

◆ operator==() [3/3]

bool Chusov::Memory::operator== ( const sbo_vector< ValueTypeLeft, sbo_threshold_left, AllocatorLeft > &  left,
const sbo_vector< ValueTypeRight, sbo_threshold_right, AllocatorRight > &  right 
)

Lexicographically compares two vectors to check them against elementwise equality.

Template Parameters
ValueTypeLeftA type of an element of the left vector. The type must be such that a common type (as specified by std::common_type) of it and ValueTypeRight is well-defined.
sbo_threshold_leftAn sbo threshold of the left vector.
AllocatorLeftAn allocator object used by the left vector.
sbo_threshold_rightAn sbo threshold of the right vector.
AllocatorRightAn allocator object used by the right vector.
Parameters
leftA reference to the left vector.
rightA reference to the right vector.
Returns
true, if the vectors are lexicographically equal, that is a number of elements in both vectors match, and the vectors are element-wise equal. Otherwise, the return value is false.