Searched refs:NoneTester (Results 1 – 2 of 2) sorted by relevance
112 class NoneTester { public: int answer = 42; }; class113 int none1(const NoneTester &obj) { return obj.answer; } in none1()114 int none2(NoneTester *obj) { return obj ? obj->answer : -1; } in none2()115 int none3(std::shared_ptr<NoneTester> &obj) { return obj ? obj->answer : -1; } in none3()116 int none4(std::shared_ptr<NoneTester> *obj) { return obj && *obj ? (*obj)->answer : -1; } in none4()117 int none5(std::shared_ptr<NoneTester> obj) { return obj ? obj->answer : -1; } in none5()328 py::class_<NoneTester, std::shared_ptr<NoneTester>>(m, "NoneTester") in TEST_SUBMODULE()
373 a = m.NoneTester()