mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-10-20 03:15:25 +02:00
24 lines
394 B
C++
24 lines
394 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/detail/yield_k.hpp>
|
||
|
|
||
|
// Sanity check only
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
for( unsigned k = 0; k < 256; ++k )
|
||
|
{
|
||
|
boost::detail::yield( k );
|
||
|
}
|
||
|
|
||
|
return 0;
|
||
|
}
|