/third_party/boost/libs/hana/test/concept/struct/ |
D | at_key.cpp | 25 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/ |
D | define_struct.cpp | 38 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()
|
D | adapt_struct.cpp | 43 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()
|
D | adapt_adt.cpp | 50 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()
|
D | struct.mcd.nested.cpp | 45 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()
|
D | struct.custom_accessor.cpp | 56 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()
|
D | struct.mcd.tag_dispatching.cpp | 51 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()
|
D | chain.cpp | 31 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()
|
D | accessors.cpp | 39 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()
|
D | members.cpp | 23 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/ |
D | searchable.cpp | 27 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()
|
D | comparable.cpp | 24 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()
|
D | keys.cpp | 24 Person john{"John", 30}; in main() local 26 hana::keys(john) == hana::make_tuple(BOOST_HANA_STRING("name"), in main()
|
D | to.cpp | 25 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/ |
D | object-literal.js | 41 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/ |
D | introspection.adapt.cpp | 26 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()
|
D | quickstart.cpp | 93 Person john{"John", 30}; in main() local 94 serialize(std::cout, john); in main()
|
D | introspection.json.cpp | 76 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/ |
D | inferFromBindingPattern.js | 34 const john = selectJohn(); constant 35 const [personAgain, nufinspecial] = john; 58 var john = selectJohn(); variable 59 var personAgain = john[0], nufinspecial = john[1];
|
D | inferFromBindingPattern.symbols | 96 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))
|
D | inferFromBindingPattern.types | 77 const john = selectJohn(); 78 >john : SelectResult<Person, Person> 82 const [personAgain, nufinspecial] = john; 85 >john : SelectResult<Person, Person>
|
/third_party/python/Doc/howto/ |
D | sorting.rst | 73 ... ('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/ |
D | reorder_struct.cpp | 69 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/ |
D | reorder_struct.cpp | 64 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/ |
D | inferFromBindingPattern.ts | 35 const john = selectJohn(); 36 const [personAgain, nufinspecial] = john;
|