mirror of
				https://github.com/boostorg/smart_ptr.git
				synced 2025-11-03 17:21:51 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			404 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			404 B
		
	
	
	
		
			C++
		
	
	
	
	
	
//
 | 
						|
// yield_k_test.cpp
 | 
						|
//
 | 
						|
// Copyright 2008 Peter Dimov
 | 
						|
//
 | 
						|
// Distributed under 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)
 | 
						|
//
 | 
						|
 | 
						|
#include <boost/smart_ptr/detail/yield_k.hpp>
 | 
						|
 | 
						|
// Sanity check only
 | 
						|
 | 
						|
int main()
 | 
						|
{
 | 
						|
    for( unsigned k = 0; k < 256; ++k )
 | 
						|
    {
 | 
						|
        boost::detail::yield( k );
 | 
						|
    }
 | 
						|
 | 
						|
    return 0;
 | 
						|
}
 |