mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	kernel: IdString:in() to use perfect forwarding
This commit is contained in:
		
							parent
							
								
									fdafb74eb7
								
							
						
					
					
						commit
						4a8cecf03e
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -359,8 +359,8 @@ namespace RTLIL
 | 
			
		|||
		// of cell types). the following functions helps with that.
 | 
			
		||||
 | 
			
		||||
		template<typename T, typename... Args>
 | 
			
		||||
		bool in(T first, Args... rest) const {
 | 
			
		||||
			return in(first) || in(rest...);
 | 
			
		||||
		bool in(T first, Args&&... rest) const {
 | 
			
		||||
			return in(first) || in(std::forward<Args>(rest)...);
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		bool in(IdString rhs) const { return *this == rhs; }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue