mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 14:09:33 +01:00 
			
		
		
		
	Hold exception translators by unique_ptr
- and removed range deleters
This commit is contained in:
		@@ -45,16 +45,6 @@ namespace Catch {
 | 
			
		||||
        virtual ~NonCopyable();
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    template<typename ContainerT>
 | 
			
		||||
    void deleteAll( ContainerT& container ) {
 | 
			
		||||
        for( auto p : container )
 | 
			
		||||
            delete p;
 | 
			
		||||
    }
 | 
			
		||||
    template<typename AssociativeContainerT>
 | 
			
		||||
    void deleteAllValues( AssociativeContainerT& container ) {
 | 
			
		||||
        for( auto const& kvp : container )
 | 
			
		||||
            delete kvp.second;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    bool startsWith( std::string const& s, std::string const& prefix );
 | 
			
		||||
    bool startsWith( std::string const& s, char prefix );
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user