Export (0) Print
Expand All

operator< (<forward_list>)

Tests if the forward list object on the left side of the operator is less than the forward list object on the right side.

bool operator<(
    const forward_list <Type, Allocator>& _Left,
    const forward_list <Type, Allocator>& _Right
);

Parameter

Description

_Left

An object of type forward_list.

_Right

An object of type forward_list.

true if the list on the left side of the operator is less than but not equal to the list on the right side of the operator; otherwise false.

This template function overloads operator< to compare two objects of template class forward_list. The function returns lexicographical_compare(lhs. begin(), lhs. end(), rhs.begin(), rhs.end()).

Header: <forward_list>

Namespace: std

Show:
© 2014 Microsoft