From 9b4dd29693168f2aa1845989b30cfafdedc43bad Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Sun, 27 May 2012 15:24:09 +0000 Subject: [PATCH] Cleaned up things that the inspect tool found in Boost.Algorithm. No functionality change [SVN r78687] --- test/boost_no_cxx_hdr_functional.ipp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/test/boost_no_cxx_hdr_functional.ipp b/test/boost_no_cxx_hdr_functional.ipp index fbcc46b0..c78caeb7 100644 --- a/test/boost_no_cxx_hdr_functional.ipp +++ b/test/boost_no_cxx_hdr_functional.ipp @@ -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 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; }