Lines Matching defs:const
153 OptionalStorage(const OptionalStorage& other) V8_NOEXCEPT {
172 OptionalStorage(const OptionalStorage& other) V8_NOEXCEPT = default;
191 OptionalStorage(const OptionalStorage& other) V8_NOEXCEPT {
215 constexpr OptionalBase(const OptionalBase& other) V8_NOEXCEPT = default;
224 explicit OptionalBase(const OptionalBase<U>& other) V8_NOEXCEPT {
236 OptionalBase& operator=(const OptionalBase& other) V8_NOEXCEPT {
247 void CopyAssign(const OptionalBase<U>& other) {
294 constexpr CopyConstructible(const CopyConstructible&) V8_NOEXCEPT = delete;
296 CopyConstructible& operator=(const CopyConstructible&) V8_NOEXCEPT = default;
306 constexpr MoveConstructible(const MoveConstructible&) V8_NOEXCEPT = default;
308 MoveConstructible& operator=(const MoveConstructible&) V8_NOEXCEPT = default;
318 constexpr CopyAssignable(const CopyAssignable&) V8_NOEXCEPT = default;
320 CopyAssignable& operator=(const CopyAssignable&) V8_NOEXCEPT = delete;
330 constexpr MoveAssignable(const MoveAssignable&) V8_NOEXCEPT = default;
332 MoveAssignable& operator=(const MoveAssignable&) V8_NOEXCEPT = default;
341 std::is_constructible<T, const Optional<U>&>::value ||
343 std::is_constructible<T, const Optional<U>&&>::value ||
345 std::is_convertible<const Optional<U>&, T>::value ||
347 std::is_convertible<const Optional<U>&&, T>::value> {};
354 std::is_assignable<T&, const Optional<U>&>::value ||
356 std::is_assignable<T&, const Optional<U>&&>::value> {};
431 constexpr Optional(const Optional& other) V8_NOEXCEPT = default;
437 // std::is_convertible<const U&, T>::value is false. It is implemented by
442 std::is_constructible<T, const U&>::value &&
444 std::is_convertible<const U&, T>::value,
446 Optional(const Optional<U>& other) V8_NOEXCEPT
451 std::is_constructible<T, const U&>::value &&
453 !std::is_convertible<const U&, T>::value,
455 explicit Optional(const Optional<U>& other) V8_NOEXCEPT
516 Optional& operator=(const Optional& other) V8_NOEXCEPT = default;
541 std::is_constructible<T, const U&>::value &&
542 std::is_assignable<T&, const U&>::value,
544 operator=(const Optional<U>& other) V8_NOEXCEPT {
560 constexpr const T* operator->() const {
570 constexpr const T& operator*() const& {
580 constexpr const T&& operator*() const&& {
590 constexpr explicit operator bool() const { return storage_.is_populated_; }
592 constexpr bool has_value() const { return storage_.is_populated_; }
599 const T& value() const & {
609 const T&& value() const && {
615 constexpr T value_or(U&& default_value) const & {
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) {