[#BloombergLP-bslalg-RangeCompare-lexicographical-04] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/RangeCompare.adoc[RangeCompare]::lexicographical :relfileprefix: ../../../ :mrdocs: Same as the preceding `lexicographical` overload, taking explicit range lengths. == Synopsis Declared in `<bslalg_rangecompare.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class INPUT_ITER> static int lexicographical( INPUT_ITER start1, INPUT_ITER end1, xref:BloombergLP/bslalg/RangeCompare/size_type.adoc[size_type] length1, INPUT_ITER start2, INPUT_ITER end2, xref:BloombergLP/bslalg/RangeCompare/size_type.adoc[size_type] length2); ---- == Return Value a negative value if the first range is less, 0 if equal, and a positive value if the first range is greater == Parameters [cols="1,4"] |=== | Name| Description | *start1* | beginning of the first range | *end1* | end of the first range (one past the last element) | *length1* | length of the first range | *start2* | beginning of the second range | *end2* | end of the second range (one past the last element) | *length2* | length of the second range |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#