[#bsl-operator_lt-05] = xref:bsl.adoc[bsl]::operator< :relfileprefix: ../ :mrdocs: Return `true` if `__x` is lexicographically less than `__y`. == Synopsis Declared in `<bslstp_slist.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class _Tp, class _Alloc> bool operator<( xref:bsl/slist.adoc[slist<_Tp, _Alloc>] const& __x, xref:bsl/slist.adoc[slist<_Tp, _Alloc>] const& __y); ---- == Return Value `true` if `__x < __y`, and `false` otherwise == Parameters [cols="1,4"] |=== | Name| Description | *__x* | left‐hand list | *__y* | right‐hand list |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#