/external/libcxx/test/std/utilities/optional/optional.syn/ |
D | optional_nullopt_t.fail.cpp | 21 using std::nullopt_t; in main() 24 optional<nullopt_t> opt; // expected-note 1 {{requested here}} in main() 25 optional<const nullopt_t> opt1; // expected-note 1 {{requested here}} in main() 26 optional<nullopt_t &> opt2; // expected-note 1 {{requested here}} in main() 27 optional<nullopt_t &&> opt3; // expected-note 1 {{requested here}} in main()
|
/external/libcxx/test/std/utilities/optional/optional.nullopt/ |
D | nullopt_t.pass.cpp | 23 using std::nullopt_t; 28 nullopt_t foo{nullopt}; in test() 35 static_assert(std::is_empty_v<nullopt_t>); in main() 36 static_assert(!std::is_default_constructible_v<nullopt_t>); in main() 38 static_assert(std::is_same_v<const nullopt_t, decltype(nullopt)>); in main()
|
D | nullopt_t.fail.cpp | 24 std::nullopt_t n = {}; in main()
|
/external/v8/src/base/ |
D | optional.h | 25 struct nullopt_t { struct 26 constexpr explicit nullopt_t(int) {} in nullopt_t() function 35 constexpr nullopt_t nullopt(0); 128 constexpr Optional(base::nullopt_t) {} // NOLINT(runtime/explicit) 152 Optional& operator=(base::nullopt_t) { 363 constexpr bool operator==(const Optional<T>& opt, base::nullopt_t) { 368 constexpr bool operator==(base::nullopt_t, const Optional<T>& opt) { 373 constexpr bool operator!=(const Optional<T>& opt, base::nullopt_t) { 378 constexpr bool operator!=(base::nullopt_t, const Optional<T>& opt) { 383 constexpr bool operator<(const Optional<T>& opt, base::nullopt_t) { [all …]
|
/external/pdfium/third_party/base/ |
D | optional.h | 20 struct nullopt_t { struct 21 constexpr explicit nullopt_t(int) {} in nullopt_t() function 30 constexpr nullopt_t nullopt(0); 125 constexpr Optional(nullopt_t) {} 149 Optional& operator=(nullopt_t) { 364 constexpr bool operator==(const Optional<T>& opt, nullopt_t) { 369 constexpr bool operator==(nullopt_t, const Optional<T>& opt) { 374 constexpr bool operator!=(const Optional<T>& opt, nullopt_t) { 379 constexpr bool operator!=(nullopt_t, const Optional<T>& opt) { 384 constexpr bool operator<(const Optional<T>& opt, nullopt_t) { [all …]
|
/external/bcc/src/cc/vendor/ |
D | optional.hpp | 250 struct nullopt_t struct 253 constexpr explicit nullopt_t(init){} in nullopt_t() argument 255 constexpr nullopt_t nullopt{nullopt_t::init()}; 353 static_assert( !std::is_same<typename std::decay<T>::type, nullopt_t>::value, "bad T" ); 401 constexpr optional(nullopt_t) noexcept : OptionalBase<T>() {}; in optional() argument 437 optional& operator=(nullopt_t) noexcept in operator =() argument 606 static_assert( !std::is_same<T, nullopt_t>::value, "bad T" ); 615 constexpr optional(nullopt_t) noexcept : ref(nullptr) {} in optional() argument 630 optional& operator=(nullopt_t) noexcept { in operator =() argument 743 template <class T> constexpr bool operator==(const optional<T>& x, nullopt_t) noexcept in operator ==() argument [all …]
|
/external/libcxx/include/ |
D | optional | 24 struct nullopt_t{see below }; 25 inline constexpr nullopt_t nullopt(unspecified ); 45 template <class T> constexpr bool operator==(const optional<T>&, nullopt_t) noexcept; 46 template <class T> constexpr bool operator==(nullopt_t, const optional<T>&) noexcept; 47 template <class T> constexpr bool operator!=(const optional<T>&, nullopt_t) noexcept; 48 template <class T> constexpr bool operator!=(nullopt_t, const optional<T>&) noexcept; 49 template <class T> constexpr bool operator<(const optional<T>&, nullopt_t) noexcept; 50 template <class T> constexpr bool operator<(nullopt_t, const optional<T>&) noexcept; 51 template <class T> constexpr bool operator<=(const optional<T>&, nullopt_t) noexcept; 52 template <class T> constexpr bool operator<=(nullopt_t, const optional<T>&) noexcept; [all …]
|
/external/perfetto/include/perfetto/base/ |
D | optional.h | 35 struct nullopt_t { struct 36 constexpr explicit nullopt_t(int) {} in nullopt_t() function 45 constexpr nullopt_t nullopt(0); 432 constexpr Optional(nullopt_t) {} // NOLINT(runtime/explicit) 521 Optional& operator=(nullopt_t) { 742 constexpr bool operator==(const Optional<T>& opt, nullopt_t) { 747 constexpr bool operator==(nullopt_t, const Optional<T>& opt) { 752 constexpr bool operator!=(const Optional<T>& opt, nullopt_t) { 757 constexpr bool operator!=(nullopt_t, const Optional<T>& opt) { 762 constexpr bool operator<(const Optional<T>&, nullopt_t) { [all …]
|
/external/libchrome/base/ |
D | optional.h | 22 struct nullopt_t { struct 23 constexpr explicit nullopt_t(int) {} in nullopt_t() function 32 constexpr nullopt_t nullopt(0); 447 constexpr Optional(nullopt_t) {} // NOLINT(runtime/explicit) 536 Optional& operator=(nullopt_t) { 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) { [all …]
|
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.ctor/ |
D | nullopt_t.pass.cpp | 22 using std::nullopt_t; 29 static_assert(std::is_nothrow_constructible<Opt, nullopt_t&>::value, ""); in test_constexpr() 47 static_assert(std::is_nothrow_constructible<Opt, nullopt_t&>::value, ""); in test()
|
/external/libcxx/test/std/utilities/optional/optional.nullops/ |
D | greater_equal.pass.cpp | 21 using std::nullopt_t; in main()
|
D | equal.pass.cpp | 21 using std::nullopt_t; in main()
|
D | not_equal.pass.cpp | 21 using std::nullopt_t; in main()
|
D | greater.pass.cpp | 21 using std::nullopt_t; in main()
|
D | less_than.pass.cpp | 21 using std::nullopt_t; in main()
|
D | less_equal.pass.cpp | 22 using std::nullopt_t; in main()
|
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.assign/ |
D | nullopt_t.pass.cpp | 23 using std::nullopt_t;
|