Lines Matching refs:bool

31   constexpr bool operator==(const optional<T>&, const optional<U>&);
33 constexpr bool operator!=(const optional<T>&, const optional<U>&);
35 constexpr bool operator<(const optional<T>&, const optional<U>&);
37 constexpr bool operator>(const optional<T>&, const optional<U>&);
39 constexpr bool operator<=(const optional<T>&, const optional<U>&);
41 constexpr bool operator>=(const optional<T>&, const optional<U>&);
44 template <class T> constexpr bool operator==(const optional<T>&, nullopt_t) noexcept;
45 template <class T> constexpr bool operator==(nullopt_t, const optional<T>&) noexcept;
46 template <class T> constexpr bool operator!=(const optional<T>&, nullopt_t) noexcept;
47 template <class T> constexpr bool operator!=(nullopt_t, const optional<T>&) noexcept;
48 template <class T> constexpr bool operator<(const optional<T>&, nullopt_t) noexcept;
49 template <class T> constexpr bool operator<(nullopt_t, const optional<T>&) noexcept;
50 template <class T> constexpr bool operator<=(const optional<T>&, nullopt_t) noexcept;
51 template <class T> constexpr bool operator<=(nullopt_t, const optional<T>&) noexcept;
52 template <class T> constexpr bool operator>(const optional<T>&, nullopt_t) noexcept;
53 template <class T> constexpr bool operator>(nullopt_t, const optional<T>&) noexcept;
54 template <class T> constexpr bool operator>=(const optional<T>&, nullopt_t) noexcept;
55 template <class T> constexpr bool operator>=(nullopt_t, const optional<T>&) noexcept;
58 template <class T, class U> constexpr bool operator==(const optional<T>&, const U&);
59 template <class T, class U> constexpr bool operator==(const T&, const optional<U>&);
60 template <class T, class U> constexpr bool operator!=(const optional<T>&, const U&);
61 template <class T, class U> constexpr bool operator!=(const T&, const optional<U>&);
62 template <class T, class U> constexpr bool operator<(const optional<T>&, const U&);
63 template <class T, class U> constexpr bool operator<(const T&, const optional<U>&);
64 template <class T, class U> constexpr bool operator<=(const optional<T>&, const U&);
65 template <class T, class U> constexpr bool operator<=(const T&, const optional<U>&);
66 template <class T, class U> constexpr bool operator>(const optional<T>&, const U&);
67 template <class T, class U> constexpr bool operator>(const T&, const optional<U>&);
68 template <class T, class U> constexpr bool operator>=(const optional<T>&, const U&);
69 template <class T, class U> constexpr bool operator>=(const T&, const optional<U>&);
126 constexpr explicit operator bool() const noexcept;
127 constexpr bool has_value() const noexcept;
241 template <class _Tp, bool = is_trivially_destructible<_Tp>::value>
255 bool __engaged_;
304 bool __engaged_;
334 template <class _Tp, bool = is_reference<_Tp>::value>
342 constexpr bool has_value() const noexcept
419 static constexpr bool __can_bind_reference() {
424 using _CheckLValueArg = integral_constant<bool,
452 constexpr bool has_value() const noexcept
501 template <class _Tp, bool = is_trivially_copy_constructible<_Tp>::value>
529 template <class _Tp, bool = is_trivially_move_constructible<_Tp>::value>
559 template <class _Tp, bool =
591 template <class _Tp, bool =
669 static constexpr bool __enable_implicit() {
675 static constexpr bool __enable_explicit() {
708 static constexpr bool __enable_implicit() {
713 static constexpr bool __enable_explicit() {
718 static constexpr bool __enable_assign() {
998 constexpr explicit operator bool() const noexcept { return has_value(); }
1202 declval<const _Up&>()), bool>,
1203 bool
1207 if (static_cast<bool>(__x) != static_cast<bool>(__y))
1209 if (!static_cast<bool>(__x))
1218 declval<const _Up&>()), bool>,
1219 bool
1223 if (static_cast<bool>(__x) != static_cast<bool>(__y))
1225 if (!static_cast<bool>(__x))
1234 declval<const _Up&>()), bool>,
1235 bool
1239 if (!static_cast<bool>(__y))
1241 if (!static_cast<bool>(__x))
1250 declval<const _Up&>()), bool>,
1251 bool
1255 if (!static_cast<bool>(__x))
1257 if (!static_cast<bool>(__y))
1266 declval<const _Up&>()), bool>,
1267 bool
1271 if (!static_cast<bool>(__x))
1273 if (!static_cast<bool>(__y))
1282 declval<const _Up&>()), bool>,
1283 bool
1287 if (!static_cast<bool>(__y))
1289 if (!static_cast<bool>(__x))
1297 bool
1300 return !static_cast<bool>(__x);
1305 bool
1308 return !static_cast<bool>(__x);
1313 bool
1316 return static_cast<bool>(__x);
1321 bool
1324 return static_cast<bool>(__x);
1329 bool
1337 bool
1340 return static_cast<bool>(__x);
1345 bool
1348 return !static_cast<bool>(__x);
1353 bool
1361 bool
1364 return static_cast<bool>(__x);
1369 bool
1377 bool
1385 bool
1388 return !static_cast<bool>(__x);
1396 declval<const _Up&>()), bool>,
1397 bool
1401 return static_cast<bool>(__x) ? *__x == __v : false;
1408 declval<const _Up&>()), bool>,
1409 bool
1413 return static_cast<bool>(__x) ? __v == *__x : false;
1420 declval<const _Up&>()), bool>,
1421 bool
1425 return static_cast<bool>(__x) ? *__x != __v : true;
1432 declval<const _Up&>()), bool>,
1433 bool
1437 return static_cast<bool>(__x) ? __v != *__x : true;
1444 declval<const _Up&>()), bool>,
1445 bool
1449 return static_cast<bool>(__x) ? *__x < __v : true;
1456 declval<const _Up&>()), bool>,
1457 bool
1461 return static_cast<bool>(__x) ? __v < *__x : false;
1468 declval<const _Up&>()), bool>,
1469 bool
1473 return static_cast<bool>(__x) ? *__x <= __v : true;
1480 declval<const _Up&>()), bool>,
1481 bool
1485 return static_cast<bool>(__x) ? __v <= *__x : false;
1492 declval<const _Up&>()), bool>,
1493 bool
1497 return static_cast<bool>(__x) ? *__x > __v : false;
1504 declval<const _Up&>()), bool>,
1505 bool
1509 return static_cast<bool>(__x) ? __v > *__x : true;
1516 declval<const _Up&>()), bool>,
1517 bool
1521 return static_cast<bool>(__x) ? *__x >= __v : false;
1528 declval<const _Up&>()), bool>,
1529 bool
1533 return static_cast<bool>(__x) ? __v >= *__x : true;
1582 return static_cast<bool>(__opt) ? hash<remove_const_t<_Tp>>()(*__opt) : 0;