mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 21:22:46 +00:00 
			
		
		
		
	 6a5446d6dd
			
		
	
	
		6a5446d6dd
		
	
	
	
	
		
			
			Add an "ElementType" typedef to NonnullOwnPtr and NonnullRefPtr to allow clients to easily find the pointee type. Then use this to remove a template argument from NonnullPtrVector. :^)
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			267 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			267 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <AK/NonnullPtrVector.h>
 | |
| #include <AK/NonnullOwnPtr.h>
 | |
| 
 | |
| namespace AK {
 | |
| 
 | |
| template<typename T, int inline_capacity = 0>
 | |
| class NonnullOwnPtrVector : public NonnullPtrVector<NonnullOwnPtr<T>, inline_capacity>
 | |
| {
 | |
| };
 | |
| 
 | |
| }
 | |
| 
 | |
| using AK::NonnullOwnPtrVector;
 |