add new signatures: some algorithms

This commit is contained in:
bolero-MURAKAMI 2013-01-20 20:49:37 +09:00
parent 9a593cbb81
commit 48f1b2d615
12 changed files with 137 additions and 9 deletions

View file

@ -7,6 +7,7 @@
#include <sprout/container/functions.hpp>
#include <sprout/iterator/operation.hpp>
#include <sprout/algorithm/fixed/result_of.hpp>
#include <sprout/pit.hpp>
#include <sprout/detail/container_complate.hpp>
#include HDR_FUNCTIONAL_SSCRISK_CEL_OR_SPROUT
@ -100,6 +101,26 @@ namespace sprout {
sprout::size(result)
);
}
template<typename Result, typename InputIterator1, typename InputIterator2, typename Compare>
inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm<Result>::type
merge(
InputIterator1 first1, InputIterator1 last1,
InputIterator2 first2, InputIterator2 last2,
Compare comp
)
{
return sprout::fixed::merge(first1, last1, first2, last2, sprout::pit<Result>(), comp);
}
template<typename Result, typename InputIterator1, typename InputIterator2>
inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm<Result>::type
merge(
InputIterator1 first1, InputIterator1 last1,
InputIterator2 first2, InputIterator2 last2
)
{
return sprout::fixed::merge(first1, last1, first2, last2, sprout::pit<Result>());
}
} // namespace fixed
using sprout::fixed::merge;