py::builtins::operator >= (py::builtins::list)

Defined in <pypp/builtins/list.hpp>

template <class type, class allocator_a, class allocator_b>
bool operator >= (const list<type, allocator_a>& lhs, const list<type, allocator_b>& rhs);

Checks whether a list is more than or equal to another list.

Parameters

lhs: A list.

rhs: Another list.

Return value

Whether lhs is more than or equal to rhs.

Complexity

\(O(n)\), where n = py::min(lhs.size(), rhs.size()).

Example

#include <pypp/builtins/list.hpp>
#include <pypp/builtins/print.hpp>

int main()
{
    py::list<int> lhs{0, 9, 1, 6};
    py::list<int> rhs{0, 9, 1, 6};

    py::print(lhs >= rhs);
}

Output:

true