Lines Matching defs:bool
44 template <typename T, bool = std::is_trivially_destructible<T>::value>
76 bool is_populated_ = false;
98 // both members (bool and union containing only variants which are trivially
117 bool is_populated_ = false;
134 template <typename T, bool = std::is_trivially_copy_constructible<T>::value,
135 bool = std::is_trivially_move_constructible<T>::value>
288 template <bool is_copy_constructible>
300 template <bool is_move_constructible>
312 template <bool is_copy_assignable>
324 template <bool is_move_assignable>
340 bool, std::is_constructible<T, Optional<U>&>::value ||
352 bool, IsConvertibleFromOptional<T, U>::value ||
445 bool>::type = false>
454 bool>::type = false>
465 bool>::type = false>
474 bool>::type = false>
498 bool>::type = false>
509 bool>::type = false>
590 constexpr explicit operator bool() const { return storage_.is_populated_; }
592 constexpr bool has_value() const { return storage_.is_populated_; }
688 // while bool() casting is replaced by has_value() to meet the chromium
691 bool operator==(const Optional<T>& lhs, const Optional<U>& rhs) {
698 bool operator!=(const Optional<T>& lhs, const Optional<U>& rhs) {
705 bool operator<(const Optional<T>& lhs, const Optional<U>& rhs) {
712 bool operator<=(const Optional<T>& lhs, const Optional<U>& rhs) {
719 bool operator>(const Optional<T>& lhs, const Optional<U>& rhs) {
726 bool operator>=(const Optional<T>& lhs, const Optional<U>& rhs) {
733 constexpr bool operator==(const Optional<T>& opt, nullopt_t) {
738 constexpr bool operator==(nullopt_t, const Optional<T>& opt) {
743 constexpr bool operator!=(const Optional<T>& opt, nullopt_t) {
748 constexpr bool operator!=(nullopt_t, const Optional<T>& opt) {
753 constexpr bool operator<(const Optional<T>& opt, nullopt_t) {
758 constexpr bool operator<(nullopt_t, const Optional<T>& opt) {
763 constexpr bool operator<=(const Optional<T>& opt, nullopt_t) {
768 constexpr bool operator<=(nullopt_t, const Optional<T>& opt) {
773 constexpr bool operator>(const Optional<T>& opt, nullopt_t) {
778 constexpr bool operator>(nullopt_t, const Optional<T>& opt) {
783 constexpr bool operator>=(const Optional<T>& opt, nullopt_t) {
788 constexpr bool operator>=(nullopt_t, const Optional<T>& opt) {
793 constexpr bool operator==(const Optional<T>& opt, const U& value) {
798 constexpr bool operator==(const U& value, const Optional<T>& opt) {
803 constexpr bool operator!=(const Optional<T>& opt, const U& value) {
808 constexpr bool operator!=(const U& value, const Optional<T>& opt) {
813 constexpr bool operator<(const Optional<T>& opt, const U& value) {
818 constexpr bool operator<(const U& value, const Optional<T>& opt) {
823 constexpr bool operator<=(const Optional<T>& opt, const U& value) {
828 constexpr bool operator<=(const U& value, const Optional<T>& opt) {
833 constexpr bool operator>(const Optional<T>& opt, const U& value) {
838 constexpr bool operator>(const U& value, const Optional<T>& opt) {
843 constexpr bool operator>=(const Optional<T>& opt, const U& value) {
848 constexpr bool operator>=(const U& value, const Optional<T>& opt) {