forked from boostorg/config
Cleaned up things that the inspect tool found in Boost.Algorithm. No functionality change
[SVN r78687]
This commit is contained in:
@ -14,6 +14,8 @@
|
||||
|
||||
void f(int, float){}
|
||||
|
||||
bool is_true ( int ) { return true; }
|
||||
|
||||
namespace boost_no_cxx11_hdr_functional {
|
||||
|
||||
int test()
|
||||
@ -36,6 +38,23 @@ int test()
|
||||
std::bind(f, std::placeholders::_1, 0.0f);
|
||||
|
||||
std::function<void(int, float)> fun(f);
|
||||
|
||||
// make sure the C++11 functions are there too
|
||||
int arr [5];
|
||||
|
||||
std::all_of ( arr, arr+5, 1 );
|
||||
std::any_of ( arr, arr+5, 1 );
|
||||
std::copy_if ( arr, arr+5, arr, is_true );
|
||||
std::copy_n ( arr, 3, arr );
|
||||
std::find_if_not ( arr, arr+5, is_true );
|
||||
std::iota ( arr, arr+5, 0 );
|
||||
std::is_partitioned ( arr, arr + 5, is_true );
|
||||
std::is_permutation ( arr, arr + 5, is_true );
|
||||
std::is_sorted ( arr, arr+5 );
|
||||
std::is_sorted_until ( arr, arr+5 );
|
||||
std::none_of ( arr, arr+5, 1 );
|
||||
std::partition_copy ( arr, arr+5, arr, arr, is_true );
|
||||
std::partition_point ( arr, arr + 5, is_true );
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user