chsvlib
chsv helper source code

◆ operator<() [2/2]

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

Checks whether the left vector is lexicographically less than the right vector.

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 must be 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 left vector lexicographically less than the right vector, that is the first element in left that does not match the respective element in right is strictly less than one in right or if all elements in left match their counterparts in right but left is a shorter vector than right. Otherwise, the return value is false.