NAME

operator==,!=,<,<=,>,>=(std::experimental::propagate_const) - operator==,!=,<,<=,>,>=(std::experimental::propagate_const)

Synopsis


template <class T> (1) (library fundamentals TS v2)
constexpr bool operator==(const propagate_const<T>& pt, nullptr_t);
template <class T> (2) (library fundamentals TS v2)
constexpr bool operator==(nullptr_t, const propagate_const<T>& pt);
template <class T> (3) (library fundamentals TS v2)
constexpr bool operator!=(const propagate_const<T>& pt, nullptr_t);
template <class T> (4) (library fundamentals TS v2)
constexpr bool operator!=(nullptr_t, const propagate_const<T>& pt);
template <class T, class U> (5) (library fundamentals TS v2)
constexpr bool operator==(const propagate_const<T>& pt, const propagate_const<U>& pu);
template <class T, class U> (6) (library fundamentals TS v2)
constexpr bool operator!=(const propagate_const<T>& pt, const propagate_const<U>& pu);
template <class T, class U> (7) (library fundamentals TS v2)
constexpr bool operator<(const propagate_const<T>& pt, const propagate_const<U>& pu);
template <class T, class U> (8) (library fundamentals TS v2)
constexpr bool operator>(const propagate_const<T>& pt, const propagate_const<U>& pu);
template <class T, class U> (9) (library fundamentals TS v2)
constexpr bool operator<=(const propagate_const<T>& pt, const propagate_const<U>& pu);
template <class T, class U> (10) (library fundamentals TS v2)
constexpr bool operator>=(const propagate_const<T>& pt, const propagate_const<U>& pu);
template <class T, class U> (11) (library fundamentals TS v2)
constexpr bool operator==(const propagate_const<T>& pt, const U& u);
template <class T, class U> (12) (library fundamentals TS v2)
constexpr bool operator!=(const propagate_const<T>& pt, const U& u);
template <class T, class U> (13) (library fundamentals TS v2)
constexpr bool operator==(const T& t, const propagate_const<U>& pu);
template <class T, class U> (14) (library fundamentals TS v2)
constexpr bool operator!=(const T& t, const propagate_const<U>& pu);
template <class T, class U> (15) (library fundamentals TS v2)
constexpr bool operator<(const propagate_const<T>& pt, const U& u);
template <class T, class U> (16) (library fundamentals TS v2)
constexpr bool operator>(const propagate_const<T>& pt, const U& u);
template <class T, class U> (17) (library fundamentals TS v2)
constexpr bool operator<=(const propagate_const<T>& pt, const U& u);
template <class T, class U> (18) (library fundamentals TS v2)
constexpr bool operator>=(const propagate_const<T>& pt, const U& u);
template <class T, class U> (19) (library fundamentals TS v2)
constexpr bool operator<(const T& t, const propagate_const<U>& pu);
template <class T, class U> (20) (library fundamentals TS v2)
constexpr bool operator>(const T& t, const propagate_const<U>& pu);
template <class T, class U> (21) (library fundamentals TS v2)
constexpr bool operator<=(const T& t, const propagate_const<U>& pu);
template <class T, class U> (22) (library fundamentals TS v2)
constexpr bool operator>=(const T& t, const propagate_const<U>& pu);


Compares the wrapped pointers of two propagate_consts, or between a propagate_const and nullptr, or between a propagate_const and another object.
1-4) Equality comparison for a propagate_const and nullptr.
5-6) Equality comparison for two propagate_consts
7-10) Ordered comparison for two propagate_consts
11-14) Equality comparison for a propagate_const and another object.
15-22) Ordered comparison for a propagate_const and another object.

Parameters


pt, pu - propagate_consts to compare
t, u - other objects to compare

Return value


Let t_ denote the underlying pointer-like object wrapped by a propagate_const.
1) pt.t_ == nullptr
2) nullptr == pt.t_
3) pt.t_ != nullptr
4) nullptr != pt.t_
5) pt.t_ == pu.t_
6) pt.t_ != pu.t_
7) pt.t_ < pu.t_
8) pt.t_ > pu.t_
9) pt.t_ <= pu.t_
10) pt.t_ >= pu.t_
11) pt.t_ == u
12) pt.t_ != u
13) t == pu.t_
14) t != pu.t_
15) pt.t_ < u
16) pt.t_ > u
17) pt.t_ <= u
18) pt.t_ >= u
19) t < pu.t_
20) t > pu.t_
21) t <= pu.t_
22) t >= pu.t_