Searched refs:ClassWithOwner (Results 1 – 1 of 1) sorted by relevance
234 struct ClassWithOwner { // Does not define destructor, necessary with owner struct235 ClassWithOwner() : owner_var(nullptr) {} // Ok in ClassWithOwner() argument237 ClassWithOwner(ArbitraryClass &other) : owner_var(&other) {} in ClassWithOwner() function240 ClassWithOwner(gsl::owner<ArbitraryClass *> other) : owner_var(other) {} // Ok in ClassWithOwner() argument242 ClassWithOwner(gsl::owner<ArbitraryClass *> data, int /* unused */) { // Ok in ClassWithOwner() function246 ClassWithOwner(ArbitraryClass *bad_data, int /* unused */, int /* unused */) { in ClassWithOwner() argument251 ClassWithOwner(ClassWithOwner &&other) : owner_var{other.owner_var} {} // Ok in ClassWithOwner() argument253 ClassWithOwner &operator=(ClassWithOwner &&other) { in operator =() argument280 ClassWithOwner C1; // Ok in test_class_with_owner()281 …ClassWithOwner C2{A}; // Bad, since the owner would… in test_class_with_owner()[all …]