Searched defs:opt (Results 1 - 25 of 353) sorted by relevance

1234567891011>>

/external/libcxx/test/utilities/optional/optional.object/optional.object.observe/
H A Dbool.pass.cpp24 constexpr optional<int> opt; local
25 static_assert(!opt, "");
28 constexpr optional<int> opt(0);
29 static_assert(opt, "");
H A Dvalue.pass.cpp37 optional<X> opt; local
38 opt.emplace();
39 assert(opt.value().test() == 4);
42 optional<X> opt; local
45 opt.value();
H A Dvalue_const.fail.cpp34 constexpr optional<X> opt; local
35 static_assert(opt.value().test() == 3, "");
H A Dvalue_const.pass.cpp39 constexpr optional<X> opt(in_place);
40 static_assert(opt.value().test() == 3, "");
43 const optional<X> opt(in_place);
44 assert(opt.value().test() == 3);
47 const optional<X> opt; local
50 opt.value();
H A Ddereference.pass.cpp38 optional<X> opt(X{});
39 assert((*opt).test() == 4);
43 optional<X> opt; local
44 assert((*opt).test() == 3);
H A Ddereference_const.pass.cpp42 constexpr optional<X> opt(X{});
43 static_assert((*opt).test() == 3, "");
46 constexpr optional<Y> opt(Y{});
47 assert((*opt).test() == 2);
51 const optional<X> opt; local
52 assert((*opt).test() == 3);
H A Dop_arrow.pass.cpp38 optional<X> opt(X{});
39 assert(opt->test() == 3);
43 optional<X> opt; local
44 assert(opt->test() == 3);
H A Dop_arrow_const.pass.cpp48 constexpr optional<X> opt(X{});
49 static_assert(opt->test() == 3, "");
52 constexpr optional<Y> opt(Y{});
53 assert(opt->test() == 2);
56 constexpr optional<Z> opt(Z{});
57 assert(opt->test() == 1);
61 const optional<X> opt; local
62 assert(opt->test() == 3);
H A Dvalue_or.pass.cpp49 optional<X> opt(in_place, 2);
51 assert(std::move(opt).value_or(y) == 2);
52 assert(*opt == 0);
55 optional<X> opt(in_place, 2);
56 assert(std::move(opt).value_or(Y(3)) == 2);
57 assert(*opt == 0);
60 optional<X> opt; local
62 assert(std::move(opt).value_or(y) == 3);
63 assert(!opt);
66 optional<X> opt; local
[all...]
H A Dvalue_or_const.pass.cpp46 constexpr optional<X> opt(2);
48 static_assert(opt.value_or(y) == 2, "");
51 constexpr optional<X> opt(2);
52 static_assert(opt.value_or(Y(3)) == 2, "");
55 constexpr optional<X> opt; local
57 static_assert(opt.value_or(y) == 3, "");
60 constexpr optional<X> opt; local
61 static_assert(opt.value_or(Y(3)) == 4, "");
64 const optional<X> opt(2);
66 assert(opt
73 const optional<X> opt; local
78 const optional<X> opt; local
[all...]
/external/libcxx/test/utilities/optional/optional.specalg/
H A Dmake_optional.pass.cpp29 optional<int> opt = make_optional(2); local
30 assert(*opt == 2);
34 optional<std::string> opt = make_optional(s); local
35 assert(*opt == s);
39 optional<std::string> opt = make_optional(std::move(s)); local
40 assert(*opt == "123");
45 optional<std::unique_ptr<int>> opt = make_optional(std::move(s)); local
46 assert(**opt == 3);
/external/libcxx/test/utilities/optional/optional.hash/
H A Dhash.pass.cpp27 optional<T> opt; local
28 assert(std::hash<optional<T>>{}(opt) == 0);
29 opt = 2;
30 assert(std::hash<optional<T>>{}(opt) == std::hash<T>{}(*opt));
34 optional<T> opt; local
35 assert(std::hash<optional<T>>{}(opt) == 0);
36 opt = std::string("123");
37 assert(std::hash<optional<T>>{}(opt) == std::hash<T>{}(*opt));
41 optional<T> opt; local
[all...]
/external/libcxx/test/utilities/optional/optional.object/optional.object.assign/
H A Dassign_value.pass.cpp40 optional<int> opt; local
41 opt = 1;
42 assert(static_cast<bool>(opt) == true);
43 assert(*opt == 1);
46 optional<int> opt; local
48 opt = i;
49 assert(static_cast<bool>(opt) == true);
50 assert(*opt == i);
53 optional<int> opt(3);
55 opt
60 optional<std::unique_ptr<int>> opt; local
[all...]
H A Dcopy.pass.cpp42 optional<int> opt; local
44 opt = opt2;
46 assert(static_cast<bool>(opt) == static_cast<bool>(opt2));
49 optional<int> opt; local
51 opt = opt2;
54 assert(static_cast<bool>(opt) == static_cast<bool>(opt2));
55 assert(*opt == *opt2);
58 optional<int> opt(3);
60 opt = opt2;
62 assert(static_cast<bool>(opt)
74 optional<X> opt; local
[all...]
H A Dmove.pass.cpp51 optional<int> opt; local
53 opt = std::move(opt2);
55 assert(static_cast<bool>(opt) == static_cast<bool>(opt2));
58 optional<int> opt; local
60 opt = std::move(opt2);
63 assert(static_cast<bool>(opt) == static_cast<bool>(opt2));
64 assert(*opt == *opt2);
67 optional<int> opt(3);
69 opt = std::move(opt2);
71 assert(static_cast<bool>(opt)
84 optional<X> opt; local
[all...]
H A Dnullopt_t.pass.cpp38 optional<int> opt; local
39 static_assert(noexcept(opt = nullopt) == true, "");
40 opt = nullopt;
41 assert(static_cast<bool>(opt) == false);
44 optional<int> opt(3);
45 opt = nullopt;
46 assert(static_cast<bool>(opt) == false);
49 optional<X> opt; local
50 static_assert(noexcept(opt = nullopt) == true, "");
52 opt
[all...]
/external/libcxx/test/utilities/optional/optional.object/
H A Doptional_not_noexcept_destructible.fail.cpp30 optional<X> opt; local
H A Doptional_not_destructible.fail.cpp31 optional<X> opt; local
/external/libgsm/src/
H A Dgsm_option.c14 int gsm_option P3((r, opt, val), gsm r, int opt, int * val) argument
18 switch (opt) {
/external/chromium_org/v8/test/mjsunit/regress/
H A Dregress-343609.js38 function opt() { function
49 opt();
50 opt();
51 opt();
/external/libcxx/test/utilities/optional/optional.object/optional.object.ctor/
H A Ddefault.pass.cpp27 constexpr Opt opt; local
28 static_assert(static_cast<bool>(opt) == false, "");
43 Opt opt; local
44 assert(static_cast<bool>(opt) == false);
/external/chromium_org/third_party/skia/debugger/QT/
H A DSkImageWidget.cpp30 QStyleOption opt; local
31 opt.init(this);
33 style()->drawPrimitive(QStyle::PE_Widget, &opt, &painter, this);
H A DSkRasterWidget.cpp40 QStyleOption opt; local
41 opt.init(this);
43 style()->drawPrimitive(QStyle::PE_Widget, &opt, &painter, this);
/external/chromium_org/third_party/yasm/source/patched-yasm/frontends/tasm/
H A Dtasm-options.h36 const char *opt; member in struct:opt_option_s
/external/iproute2/tc/
H A Dq_ingress.c56 static int ingress_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt) argument

Completed in 366 milliseconds

1234567891011>>