/external/libcxx/test/std/experimental/optional/optional.object/optional.object.observe/ |
H A D | bool.pass.cpp | 24 constexpr optional<int> opt; local 25 static_assert(!opt, ""); 28 constexpr optional<int> opt(0); 29 static_assert(opt, "");
|
H A D | value.pass.cpp | 37 optional<X> opt; local 38 opt.emplace(); 39 assert(opt.value().test() == 4); 42 optional<X> opt; local 45 opt.value();
|
H A D | value_const.fail.cpp | 34 constexpr optional<X> opt; local 35 static_assert(opt.value().test() == 3, "");
|
H A D | value_const.pass.cpp | 39 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 D | dereference.pass.cpp | 38 optional<X> opt(X{}); 39 assert((*opt).test() == 4); 43 optional<X> opt; local 44 assert((*opt).test() == 3);
|
H A D | dereference_const.pass.cpp | 42 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 D | op_arrow.pass.cpp | 37 constexpr optional<X> opt(X{}); 38 static_assert(opt->test() == 3, ""); 42 optional<X> opt; local 43 assert(opt->test() == 3);
|
H A D | op_arrow_const.pass.cpp | 48 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 D | value_or.pass.cpp | 49 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 D | value_or_const.pass.cpp | 46 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/std/experimental/optional/optional.specalg/ |
H A D | make_optional.pass.cpp | 29 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/std/experimental/optional/optional.hash/ |
H A D | hash.pass.cpp | 27 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/std/experimental/optional/optional.object/optional.object.assign/ |
H A D | assign_value.pass.cpp | 40 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 D | copy.pass.cpp | 42 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 D | move.pass.cpp | 51 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 D | nullopt_t.pass.cpp | 38 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/std/experimental/optional/optional.object/ |
H A D | optional_not_noexcept_destructible.fail.cpp | 30 optional<X> opt; local
|
H A D | optional_not_destructible.fail.cpp | 31 optional<X> opt; local
|
/external/libgsm/src/ |
H A D | gsm_option.c | 14 int gsm_option P3((r, opt, val), gsm r, int opt, int * val) argument 18 switch (opt) {
|
/external/libcxx/test/std/experimental/optional/optional.object/optional.object.ctor/ |
H A D | default.pass.cpp | 27 constexpr Opt opt; local 28 static_assert(static_cast<bool>(opt) == false, ""); 43 Opt opt; local 44 assert(static_cast<bool>(opt) == false);
|
/external/v8/test/mjsunit/regress/ |
H A D | regress-343609.js | 38 function opt() { function 49 opt(); 50 opt(); 51 opt();
|
/external/deqp/execserver/tools/ |
H A D | xsMain.cpp | 36 namespace opt namespace 69 opt::registerOptions(parser); 80 const xs::ExecutionServer::RunMode runMode = cmdLine.getOption<opt::SingleExec>() 83 const int port = cmdLine.getOption<opt::Port>();
|
/external/iproute2/tc/ |
H A D | q_ingress.c | 56 static int ingress_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt) argument
|
H A D | f_basic.c | 110 struct rtattr *opt, __u32 handle) 114 if (opt == NULL) 117 parse_rtattr_nested(tb, TCA_BASIC_MAX, opt); 109 basic_print_opt(struct filter_util *qu, FILE *f, struct rtattr *opt, __u32 handle) argument
|
/external/toybox/lib/ |
H A D | net.c | 11 void xsetsockopt(int fd, int level, int opt, void *val, socklen_t len) argument 13 if (-1 == setsockopt(fd, level, opt, val, len)) perror_exit("setsockopt");
|