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 or equal to 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 or equal to the right vector, that is the first element in left that does not match the respective element in right is less than one in right or if all elements in left match their counterparts in right and a number of elements in left is less than or equal to that of right. Otherwise, the return value is false.