mirror of
				https://github.com/mozilla/gecko-dev.git
				synced 2025-11-01 00:38:50 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			265 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			265 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #define NULL __null
 | |
| 
 | |
| namespace std {
 | |
| 
 | |
| template <typename T>
 | |
| struct unique_ptr {
 | |
|   T& operator*() const;
 | |
|   T* operator->() const;
 | |
|   T* get() const;
 | |
|   explicit operator bool() const noexcept;
 | |
| };
 | |
| }
 | |
| 
 | |
| struct A {
 | |
| };
 | |
| 
 | |
| void foo() {
 | |
|   A& b2 = *std::unique_ptr<A>().get();
 | |
| }
 | 
