Lines Matching refs:age
35 struct age
38 age(int rhs = 0) : m_val(rhs) {}
55 age m_age{};
59 person(const age& a, name n, const country& c) : m_age(a), m_name(std::move(n)), m_country(c) {}
84 static void to_json(BasicJsonType& j, age a)
117 j = BasicJsonType{{"age", p.m_age}, {"name", p.m_name}, {"country", p.m_country}};
136 static bool operator==(age lhs, age rhs)
173 static void from_json(const BasicJsonType& j, age& a)
203 p.m_age = j["age"].template get<age>();
230 const udt::age a
247 CHECK(json(sfinae_addict) == R"({"name":"theo", "age":23, "country":"France"})"_json);
250 R"({"person" : {"age":23, "name":"theo", "country":"France"}, "address":"Paris"})"_json);
254 R"({"name":"C++", "contacts" : [{"person" : {"age":23, "name":"theo", "country":"France"}, "address":"Paris"}, {"person" : {"age":42, "country":"中华人民共和国", "name":"王芳"}, "address":"Paris"}]})"_json);
261 R"({"name":"C++", "contacts" : [{"person" : {"age":23, "name":"theo", "country":"France"}, "address":"Paris"}, {"person" : {"age":42, "country":"中华人民共和国", "name":"王芳"}, "address":"Paris"}]})"_json;
272 const auto age = contact_json["person"]["age"].get<udt::age>();
277 CHECK(age == a);
311 const udt::age age = contact_json["person"]["age"];
315 CHECK(age == a);