Home
last modified time | relevance | path

Searched refs:nullopt_t (Results 1 – 17 of 17) sorted by relevance

/external/libcxx/test/std/utilities/optional/optional.syn/
Doptional_nullopt_t.fail.cpp21 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/
Dnullopt_t.pass.cpp23 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()
Dnullopt_t.fail.cpp24 std::nullopt_t n = {}; in main()
/external/v8/src/base/
Doptional.h25 struct nullopt_t { struct
26 constexpr explicit nullopt_t(int) {} in nullopt_t() argument
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/
Doptional.h20 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/
Doptional.hpp250 struct nullopt_t struct
253 constexpr explicit nullopt_t(init){} in nullopt_t() function
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/
Doptional24 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/
Doptional.h35 struct nullopt_t { struct
36 constexpr explicit nullopt_t(int) {} in nullopt_t() argument
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/
Doptional.h22 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/
Dnullopt_t.pass.cpp22 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/
Dgreater_equal.pass.cpp21 using std::nullopt_t; in main()
Dequal.pass.cpp21 using std::nullopt_t; in main()
Dnot_equal.pass.cpp21 using std::nullopt_t; in main()
Dgreater.pass.cpp21 using std::nullopt_t; in main()
Dless_than.pass.cpp21 using std::nullopt_t; in main()
Dless_equal.pass.cpp22 using std::nullopt_t; in main()
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.assign/
Dnullopt_t.pass.cpp23 using std::nullopt_t;