.. index:: py::builtins::operator > [py::builtins::list] .. _doxycast_pypp_namespacepy_1_1builtins_1a91456351ad442eb5d6af6ac4fb57b642: .. _py-builtins-operator-more_than-list: *py::builtins::*\ operator > (:ref:`py::builtins::list `) =========================================================================== *Defined in* ```` .. code-block:: cpp template bool operator > (const list& lhs, const list& rhs); Checks whether a list is more than another list. Parameters ---------- ``lhs``: A list. ``rhs``: Another list. Return value ------------ Whether ``lhs`` is more than ``rhs``. Complexity ---------- :math:`O(n)`, where ``n = py::min(lhs.size(), rhs.size())``. Example ------- .. code-block:: cpp #include #include int main() { py::list lhs{0, 9, 1, 6}; py::list rhs{0, 9, 1, 4}; py::print(lhs > rhs); } **Output**: .. code-block:: text true