Lines Matching defs:operator
24 TestFactory1 &operator=(TestFactory1 &&) = delete;
25 TestFactory1 &operator=(const TestFactory1 &) = delete;
38 TestFactory2 &operator=(TestFactory2 &&m) { value = std::move(m.value); print_move_assigned(this); return *this; }
51 TestFactory3 &operator=(TestFactory3 &&m) { value = std::move(m.value); print_move_assigned(this); return *this; }
262 // Class with a custom new operator but *without* a placement new operator (issue #948)
266 static void *operator new(std::size_t s) {
267 auto *p = ::operator new(s);
268 py::print("operator new called, returning", reinterpret_cast<uintptr_t>(p));
271 static void operator delete(void *p) {
272 py::print("operator delete called on", reinterpret_cast<uintptr_t>(p));
273 ::operator delete(p);
293 static void *operator new(size_t s) { py::print("noisy new"); return ::operator new(s); }
294 static void *operator new(size_t, void *p) { py::print("noisy placement new"); return p; }
295 static void operator delete(void *p, size_t) { py::print("noisy delete"); ::operator delete(p); }
296 static void operator delete(void *, void *) { py::print("noisy placement delete"); }
299 static void operator delete(void *p) { py::print("noisy delete"); ::operator delete(p); }