logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

std::rel_ops - The generated relational operators are sequestered here.

Author

       Generated automatically by Doxygen for libstdc++ from the source code.

                                                    libstdc++                                 std::rel_ops(3cxx)

Detailed Description

       The generated relational operators are sequestered here.

       Libstdc++ headers must not use the contents of rel_ops. User code should also avoid them, because
       unconstrained function templates are too greedy and can easily cause ambiguities.

       C++20 default comparisons are a better solution.

Function Documentation

template<class_Tp>boolstd::rel_ops::operator!=(const_Tp&__x,const_Tp&__y)[inline]
       Defines != for arbitrary types, in terms of ==.

       Parameters__x A thing.
           __y Another thing.

       Returns
           __x != __y

       This function uses == to determine its result.

   template<class_Tp>boolstd::rel_ops::operator<=(const_Tp&__x,const_Tp&__y)[inline]
       Defines <= for arbitrary types, in terms of <.

       Parameters__x A thing.
           __y Another thing.

       Returns
           __x <= __y

       This function uses < to determine its result.

   template<class_Tp>boolstd::rel_ops::operator>(const_Tp&__x,const_Tp&__y)[inline]
       Defines > for arbitrary types, in terms of <.

       Parameters__x A thing.
           __y Another thing.

       Returns
           __x > __y

       This function uses < to determine its result.

   template<class_Tp>boolstd::rel_ops::operator>=(const_Tp&__x,const_Tp&__y)[inline]
       Defines >= for arbitrary types, in terms of <.

       Parameters__x A thing.
           __y Another thing.

       Returns
           __x >= __y

       This function uses < to determine its result.

Name

       std::rel_ops - The generated relational operators are sequestered here.

Synopsis

Functions
       template<class _Tp > bool operator!= (const _Tp &__x, const _Tp &__y)
           Defines != for arbitrary types, in terms of ==.
       template<class _Tp > bool operator<= (const _Tp &__x, const _Tp &__y)
           Defines <= for arbitrary types, in terms of <.
       template<class _Tp > bool operator> (const _Tp &__x, const _Tp &__y)
           Defines > for arbitrary types, in terms of <.
       template<class _Tp > bool operator>= (const _Tp &__x, const _Tp &__y)
           Defines >= for arbitrary types, in terms of <.

See Also