mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-10-25 01:50:30 -04:00 
			
		
		
		
	
		
			
	
	
		
			33 lines
		
	
	
		
			852 B
		
	
	
	
		
			C++
		
	
	
	
	
	
		
		
			
		
	
	
			33 lines
		
	
	
		
			852 B
		
	
	
	
		
			C++
		
	
	
	
	
	
|  | // Boost.Range library
 | ||
|  | //
 | ||
|  | //  Copyright Neil Groves 2009. Use, modification and
 | ||
|  | //  distribution is subject to the Boost Software License, Version
 | ||
|  | //  1.0. (See accompanying file LICENSE_1_0.txt or copy at
 | ||
|  | //  http://www.boost.org/LICENSE_1_0.txt)
 | ||
|  | //
 | ||
|  | //
 | ||
|  | // For more information, see http://www.boost.org/libs/range/
 | ||
|  | //
 | ||
|  | #ifndef BOOST_RANGE_TEST_TEST_FUNCTION_MULTIPLY_BY_X_HPP_INCLUDED
 | ||
|  | #define BOOST_RANGE_TEST_TEST_FUNCTION_MULTIPLY_BY_X_HPP_INCLUDED
 | ||
|  | 
 | ||
|  | namespace boost | ||
|  | { | ||
|  |     namespace range_test_function | ||
|  |     { | ||
|  |         template< class Arg > | ||
|  |         struct multiply_by_x | ||
|  |         { | ||
|  |             typedef Arg result_type; | ||
|  |             typedef Arg argument_type; | ||
|  | 
 | ||
|  |             explicit multiply_by_x(Arg x) : m_x(x) {} | ||
|  |             Arg operator()(Arg x) const { return x * m_x; } | ||
|  |         private: | ||
|  |             Arg m_x; | ||
|  |         }; | ||
|  |     } | ||
|  | } | ||
|  | 
 | ||
|  | #endif // include guard
 |