Searched refs:CopyDeleter (Results 1 – 3 of 3) sorted by relevance
293 class CopyDeleter298 CopyDeleter() : state_(0) {} in CopyDeleter() function299 explicit CopyDeleter(int s) : state_(s) {} in CopyDeleter() function300 ~CopyDeleter() {assert(state_ >= 0); state_ = -1;} in ~CopyDeleter()302 CopyDeleter(CopyDeleter const& other) : state_(other.state_) {} in CopyDeleter() function303 CopyDeleter& operator=(CopyDeleter const& other) {316 class CopyDeleter<T[]>322 CopyDeleter() : state_(0) {} in CopyDeleter() function323 explicit CopyDeleter(int s) : state_(s) {} in CopyDeleter() function324 ~CopyDeleter() {assert(state_ >= 0); state_ = -1;} in ~CopyDeleter()[all …]
77 test_enabled_with_deleter<int, CopyDeleter<int>>(); in main()78 test_enabled_with_deleter<int, CopyDeleter<int[]>>(); in main()
73 CopyDeleter<A> d(5); in main()74 std::unique_ptr<A, CopyDeleter<A> > s(p, d); in main()