Scroll to navigation

std::rel_ops(3) Library Functions Manual std::rel_ops(3)

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 <.

Detailed Description

The generated relational operators are sequestered here.

Function Documentation

template<class _Tp > bool std::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 > bool std::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 > bool std::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 > bool std::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.

Author

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

Mon Dec 18 2023 libstdc++