Lines Matching refs:UserType
94 UserType v1{1};
95 UserType v2{1};
96 static UserType sv1;
97 static UserType sv2;
99 const UserType &get1() const { return v1; }
100 const UserType &get2() const { return v2; }
101 UserType get_rvalue() const { return v2; }
105 UserType TestPropRVP::sv1(1);
106 UserType TestPropRVP::sv2(1);
314 auto static_get1 = [](py::object) -> const UserType & { return TestPropRVP::sv1; };
315 auto static_get2 = [](py::object) -> const UserType & { return TestPropRVP::sv2; };
337 .def_property_readonly_static("static_rvalue", [](py::object) { return UserType(1); });
438 //.def_readwrite("fails", &UserType::value) // should trigger a static_assert if uncommented
439 //.def_readonly("fails", &UserType::value) // should trigger a static_assert if uncommented