Home
last modified time | relevance | path

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

12

/external/libcxx/test/std/utilities/optional/optional.nullopt/
Dnullopt_t.pass.cpp25 using std::nullopt_t;
30 test(const nullopt_t&) in test() argument
37 static_assert(( std::is_class<nullopt_t>::value), ""); in main()
38 static_assert(( std::is_empty<nullopt_t>::value), ""); in main()
39 static_assert(( std::is_literal_type<nullopt_t>::value), ""); in main()
40 static_assert((!std::is_default_constructible<nullopt_t>::value), ""); in main()
Dnot_brace_initializable.fail.cpp18 using std::nullopt_t;
24 nullopt_t foo = {}; in main()
Dnullopt_t.fail.cpp26 std::nullopt_t n = {}; in main()
/external/libcxx/test/std/experimental/optional/optional.nullopt/
Dnullopt_t.pass.cpp20 using std::experimental::nullopt_t;
25 test(const nullopt_t&) in test() argument
32 static_assert((std::is_class<nullopt_t>::value), ""); in main()
33 static_assert((std::is_empty<nullopt_t>::value), ""); in main()
34 static_assert((std::is_literal_type<nullopt_t>::value), ""); in main()
35 static_assert((!std::is_default_constructible<nullopt_t>::value), ""); in main()
/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/libchrome/base/
Doptional.h22 struct nullopt_t { struct
23 constexpr explicit nullopt_t(int) {} in nullopt_t() argument
32 constexpr nullopt_t nullopt(0);
83 Optional(base::nullopt_t) : Optional() {}
106 Optional& operator=(base::nullopt_t) {
315 constexpr bool operator==(const Optional<T>& opt, base::nullopt_t) {
320 constexpr bool operator==(base::nullopt_t, const Optional<T>& opt) {
325 constexpr bool operator!=(const Optional<T>& opt, base::nullopt_t) {
330 constexpr bool operator!=(base::nullopt_t, const Optional<T>& opt) {
335 constexpr bool operator<(const Optional<T>& opt, base::nullopt_t) {
[all …]
/external/libcxx/include/experimental/
Doptional29 struct nullopt_t{see below};
30 constexpr nullopt_t nullopt(unspecified);
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;
56 template <class T> constexpr bool operator<=(const optional<T>&, nullopt_t) noexcept;
57 template <class T> constexpr bool operator<=(nullopt_t, const optional<T>&) noexcept;
[all …]
/external/libcxx/include/
Doptional24 struct nullopt_t{see below };
25 constexpr nullopt_t nullopt(unspecified );
43 template <class T> constexpr bool operator==(const optional<T>&, nullopt_t) noexcept;
44 template <class T> constexpr bool operator==(nullopt_t, const optional<T>&) noexcept;
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;
[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/experimental/optional/optional.syn/
Doptional_nullopt_t.fail.cpp21 using std::experimental::nullopt_t; in main()
24 optional<nullopt_t> opt; in main()
Doptional_const_nullopt_t.fail.cpp21 using std::experimental::nullopt_t; in main()
24 optional<const nullopt_t> opt; in main()
/external/libcxx/test/std/utilities/optional/optional.nullops/
Dless_equal.pass.cpp22 using std::nullopt_t; in main()
Dgreater_equal.pass.cpp21 using std::nullopt_t; in main()
Dnot_equal.pass.cpp21 using std::nullopt_t; in main()
Dless_than.pass.cpp21 using std::nullopt_t; in main()
Dgreater.pass.cpp21 using std::nullopt_t; in main()
Dequal.pass.cpp21 using std::nullopt_t; in main()
/external/libcxx/test/std/experimental/optional/optional.nullops/
Dnot_equal.pass.cpp21 using std::experimental::nullopt_t; in main()
Dgreater_equal.pass.cpp21 using std::experimental::nullopt_t; in main()
Dgreater.pass.cpp21 using std::experimental::nullopt_t; in main()
Dequal.pass.cpp21 using std::experimental::nullopt_t; in main()
Dless_than.pass.cpp21 using std::experimental::nullopt_t; in main()
Dless_equal.pass.cpp24 using std::experimental::nullopt_t; in main()
/external/libcxx/test/std/experimental/optional/optional.object/optional.object.ctor/
Dnullopt_t.pass.cpp20 using std::experimental::nullopt_t;
/external/libcxx/test/std/experimental/optional/optional.object/optional.object.assign/
Dnullopt_t.pass.cpp20 using std::experimental::nullopt_t;

12