Home
last modified time | relevance | path

Searched refs:john (Results 1 – 25 of 70) sorted by relevance

123

/third_party/boost/libs/hana/test/concept/struct/
Dat_key.cpp25 Person john{"John", "Doe", 30}; in main() local
26 std::string& name = hana::at_key(john, BOOST_HANA_STRING("name")); in main()
27 std::string& last_name = hana::at_key(john, BOOST_HANA_STRING("last_name")); in main()
28 int& age = hana::at_key(john, BOOST_HANA_STRING("age")); in main()
34 BOOST_HANA_RUNTIME_CHECK(john.name == "Bob"); in main()
35 BOOST_HANA_RUNTIME_CHECK(john.last_name == "Foo"); in main()
36 BOOST_HANA_RUNTIME_CHECK(john.age == 99); in main()
41 Person john{"John", "Doe", 30}; in main() local
42 Person const& const_john = john; in main()
47 john.name = "Bob"; in main()
[all …]
/third_party/boost/libs/hana/example/
Ddefine_struct.cpp38 Person john{"John", 30}, bob{"Bob", 40}; in main() local
39 BOOST_HANA_RUNTIME_CHECK(hana::equal(john, john)); in main()
40 BOOST_HANA_RUNTIME_CHECK(hana::not_equal(john, bob)); in main()
42 BOOST_HANA_RUNTIME_CHECK(hana::find(john, BOOST_HANA_STRING("name")) == hana::just("John")); in main()
43 BOOST_HANA_RUNTIME_CHECK(hana::find(john, BOOST_HANA_STRING("age")) == hana::just(30)); in main()
44 BOOST_HANA_CONSTANT_CHECK(hana::find(john, BOOST_HANA_STRING("foo")) == hana::nothing); in main()
46 BOOST_HANA_RUNTIME_CHECK(hana::to_tuple(john) == hana::make_tuple( in main()
51 BOOST_HANA_RUNTIME_CHECK(hana::to_map(john) == hana::make_map( in main()
Dadapt_struct.cpp43 ns::Person john{"John", 30}, bob{"Bob", 40}; in main() local
44 BOOST_HANA_RUNTIME_CHECK(hana::equal(john, john)); in main()
45 BOOST_HANA_RUNTIME_CHECK(hana::not_equal(john, bob)); in main()
47 BOOST_HANA_RUNTIME_CHECK(hana::find(john, BOOST_HANA_STRING("name")) == hana::just("John")); in main()
48 BOOST_HANA_RUNTIME_CHECK(hana::find(john, BOOST_HANA_STRING("age")) == hana::just(30)); in main()
49 BOOST_HANA_CONSTANT_CHECK(hana::find(john, BOOST_HANA_STRING("foo")) == hana::nothing); in main()
51 BOOST_HANA_RUNTIME_CHECK(hana::to_tuple(john) == hana::make_tuple( in main()
56 BOOST_HANA_RUNTIME_CHECK(hana::to_map(john) == hana::make_map( in main()
Dadapt_adt.cpp50 ns::Person john{"John", 30}, bob{"Bob", 40}; in main() local
51 BOOST_HANA_RUNTIME_CHECK(hana::equal(john, john)); in main()
52 BOOST_HANA_RUNTIME_CHECK(hana::not_equal(john, bob)); in main()
54 BOOST_HANA_RUNTIME_CHECK(hana::find(john, BOOST_HANA_STRING("name")) == hana::just("John")); in main()
55 BOOST_HANA_RUNTIME_CHECK(hana::find(john, BOOST_HANA_STRING("age")) == hana::just(30)); in main()
56 BOOST_HANA_CONSTANT_CHECK(hana::find(john, BOOST_HANA_STRING("foo")) == hana::nothing); in main()
58 BOOST_HANA_RUNTIME_CHECK(hana::to_tuple(john) == hana::make_tuple( in main()
63 BOOST_HANA_RUNTIME_CHECK(hana::to_map(john) == hana::make_map( in main()
Dstruct.mcd.nested.cpp45 Person john{"John", 30}, bob{"Bob", 40}; in main() local
46 BOOST_HANA_RUNTIME_CHECK(hana::equal(john, john)); in main()
47 BOOST_HANA_RUNTIME_CHECK(hana::not_equal(john, bob)); in main()
49 BOOST_HANA_RUNTIME_CHECK(hana::find(john, BOOST_HANA_STRING("name")) == hana::just("John")); in main()
50 BOOST_HANA_RUNTIME_CHECK(hana::find(john, BOOST_HANA_STRING("age")) == hana::just(30)); in main()
51 BOOST_HANA_CONSTANT_CHECK(hana::find(john, BOOST_HANA_STRING("foo")) == hana::nothing); in main()
53 BOOST_HANA_RUNTIME_CHECK(hana::to_tuple(john) == hana::make_tuple( in main()
Dstruct.custom_accessor.cpp56 Person john{"John", 30}, bob{"Bob", 40}; in main() local
57 BOOST_HANA_RUNTIME_CHECK(hana::equal(john, john)); in main()
58 BOOST_HANA_RUNTIME_CHECK(hana::not_equal(john, bob)); in main()
60 BOOST_HANA_RUNTIME_CHECK(hana::find(john, name) == hana::just("John")); in main()
61 BOOST_HANA_RUNTIME_CHECK(hana::find(john, age) == hana::just(30)); in main()
62 BOOST_HANA_CONSTANT_CHECK(hana::find(john, BOOST_HANA_STRING("foo")) == hana::nothing); in main()
64 BOOST_HANA_RUNTIME_CHECK(hana::to_tuple(john) == hana::make_tuple( in main()
Dstruct.mcd.tag_dispatching.cpp51 Person john{"John", 30}, bob{"Bob", 40}; in main() local
52 BOOST_HANA_RUNTIME_CHECK(hana::equal(john, john)); in main()
53 BOOST_HANA_RUNTIME_CHECK(hana::not_equal(john, bob)); in main()
55 BOOST_HANA_RUNTIME_CHECK(hana::find(john, name) == hana::just("John")); in main()
56 BOOST_HANA_RUNTIME_CHECK(hana::find(john, age) == hana::just(30)); in main()
57 BOOST_HANA_CONSTANT_CHECK(hana::find(john, BOOST_HANA_STRING("foo")) == hana::nothing); in main()
59 BOOST_HANA_RUNTIME_CHECK(hana::to_tuple(john) == hana::make_tuple( in main()
Dchain.cpp31 constexpr Person john{30}; in main() local
34 BOOST_HANA_CONSTANT_CHECK(f(john) == hana::nothing); in main()
40 BOOST_HANA_CONSTEXPR_CHECK(f(&john) == hana::just(30u)); in main()
Daccessors.cpp39 Person john{"John", 30}; in main() local
40 BOOST_HANA_RUNTIME_CHECK(get_name(john) == "John"); in main()
41 BOOST_HANA_RUNTIME_CHECK(get_age(john) == 30); in main()
Dmembers.cpp23 Person john{"John", 30}; in main() local
24 BOOST_HANA_RUNTIME_CHECK(hana::members(john) == hana::make_tuple("John", 30)); in main()
/third_party/boost/libs/hana/example/struct/
Dsearchable.cpp27 Person john{"John", 30}; in main() local
30 hana::find(john, BOOST_HANA_STRING("name")) == hana::just("John") in main()
34 hana::find(john, BOOST_HANA_STRING("foobar")) == hana::nothing in main()
40 return hana::second(a)(john) == hana::second(a)(john); in main()
45 BOOST_HANA_RUNTIME_CHECK(hana::equal(john, john)); in main()
Dcomparable.cpp24 Person john{"John", 30}, kevin{"Kevin", 20}; in main() local
26 BOOST_HANA_RUNTIME_CHECK(hana::equal(john, john)); in main()
27 BOOST_HANA_RUNTIME_CHECK(hana::not_equal(john, kevin)); in main()
Dkeys.cpp24 Person john{"John", 30}; in main() local
26 hana::keys(john) == hana::make_tuple(BOOST_HANA_STRING("name"), in main()
Dto.cpp25 Person john{"John", 30u}; in main() local
26 BOOST_HANA_RUNTIME_CHECK(hana::to<hana::map_tag>(john) == hana::make_map( in main()
/third_party/jerryscript/tests/jerry/
Dobject-literal.js41 var john = new Object(); variable
42 john.firstName = "John";
43 john.lastName = "Doe";
44 john.age = 40;
45 john.eyeColor = "blue";
47 assert (person.firstName === john.firstName);
48 assert (person.lastName === john.lastName);
49 assert (person.age === john.age);
50 assert (person.eyeColor === john.eyeColor);
/third_party/boost/libs/hana/example/tutorial/
Dintrospection.adapt.cpp26 Person john{"John", 30}; in main() local
28 hana::for_each(john, [](auto pair) { in main()
38 hana::for_each(john, hana::fuse([](auto name, auto member) { in main()
48 std::string name = hana::at_key(john, "name"_s); in main()
51 int age = hana::at_key(john, "age"_s); in main()
58 auto map = hana::insert(hana::to<hana::map_tag>(john), hana::make_pair("last name"_s, "Doe"s)); in main()
Dquickstart.cpp93 Person john{"John", 30}; in main() local
94 serialize(std::cout, john); in main()
Dintrospection.json.cpp76 Person john{"John", "Doe", 30}; in main() local
78 auto tuple = hana::make_tuple(john, audi, bmw); in main()
/third_party/typescript/tests/baselines/reference/
DinferFromBindingPattern.js34 const john = selectJohn(); constant
35 const [personAgain, nufinspecial] = john;
58 var john = selectJohn(); variable
59 var personAgain = john[0], nufinspecial = john[1];
DinferFromBindingPattern.symbols96 const john = selectJohn();
97 >john : Symbol(john, Decl(inferFromBindingPattern.ts, 32, 5))
100 const [personAgain, nufinspecial] = john;
103 >john : Symbol(john, Decl(inferFromBindingPattern.ts, 32, 5))
DinferFromBindingPattern.types77 const john = selectJohn();
78 >john : SelectResult<Person, Person>
82 const [personAgain, nufinspecial] = john;
85 >john : SelectResult<Person, Person>
/third_party/python/Doc/howto/
Dsorting.rst73 ... ('john', 'A', 15),
78 [('dave', 'B', 10), ('jane', 'B', 12), ('john', 'A', 15)]
93 ... Student('john', 'A', 15),
98 [('dave', 'B', 10), ('jane', 'B', 12), ('john', 'A', 15)]
115 [('dave', 'B', 10), ('jane', 'B', 12), ('john', 'A', 15)]
118 [('dave', 'B', 10), ('jane', 'B', 12), ('john', 'A', 15)]
126 [('john', 'A', 15), ('dave', 'B', 10), ('jane', 'B', 12)]
129 [('john', 'A', 15), ('dave', 'B', 10), ('jane', 'B', 12)]
141 [('john', 'A', 15), ('jane', 'B', 12), ('dave', 'B', 10)]
144 [('john', 'A', 15), ('jane', 'B', 12), ('dave', 'B', 10)]
[all …]
/third_party/boost/libs/spirit/example/qi/
Dreorder_struct.cpp69 client::employee john; in main() local
76 name_and_age johnview(fusion::as_nview<2, 0>(john)); in main()
82 std::cout << "Parsed: " << john.forename << ", " << john.age in main()
/third_party/boost/libs/spirit/example/karma/
Dreorder_struct.cpp64 client::employee john = { "John", "Smith", 25, 2000.50, "Sales" }; in main() local
73 fusion::as_nview<2, 0>(john)); in main()
90 employees += john, mary, tom; in main()
/third_party/typescript/tests/cases/conformance/
DinferFromBindingPattern.ts35 const john = selectJohn();
36 const [personAgain, nufinspecial] = john;

123