mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:12:43 +00:00 
			
		
		
		
	 0c424c4dab
			
		
	
	
		0c424c4dab
		
	
	
	
	
		
			
			This makes it much easier to write (template) functions that accept either a signed or unsigned bigint parameter.
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			320 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			320 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2021, the SerenityOS developers.
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <AK/Concepts.h>
 | |
| 
 | |
| namespace Crypto {
 | |
| 
 | |
| class SignedBigInteger;
 | |
| class UnsignedBigInteger;
 | |
| 
 | |
| template<typename T>
 | |
| concept BigInteger = IsSame<T, SignedBigInteger> || IsSame<T, UnsignedBigInteger>;
 | |
| 
 | |
| }
 |