mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-14 15:04:09 +00:00
add iterator category check for algorithm incomplete implementation
This commit is contained in:
parent
1cfec16e52
commit
092910e2f7
29 changed files with 139 additions and 91 deletions
|
@ -4,11 +4,12 @@
|
|||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fixed/set_intersection.hpp>
|
||||
#include <sprout/algorithm/fixed/set_union.hpp>
|
||||
#include <sprout/algorithm/fit/result_of.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/detail/algorithm/set_overlap_count.hpp>
|
||||
#include HDR_ALGORITHM_SSCRISK_CEL_OR_SPROUT
|
||||
#include <sprout/iterator/type_traits/is_iterator.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace fit {
|
||||
|
@ -43,6 +44,10 @@ namespace sprout {
|
|||
Result const& result, Compare comp
|
||||
)
|
||||
{
|
||||
static_assert(
|
||||
sprout::is_forward_iterator<InputIterator1>::value && sprout::is_forward_iterator<InputIterator2>::value,
|
||||
"Sorry, not implemented."
|
||||
);
|
||||
return sprout::fit::detail::set_intersection_impl(first1, last1, first2, last2, result, comp, sprout::internal_begin_offset(result));
|
||||
}
|
||||
|
||||
|
@ -77,6 +82,10 @@ namespace sprout {
|
|||
Result const& result
|
||||
)
|
||||
{
|
||||
static_assert(
|
||||
sprout::is_forward_iterator<InputIterator1>::value && sprout::is_forward_iterator<InputIterator2>::value,
|
||||
"Sorry, not implemented."
|
||||
);
|
||||
return sprout::fit::detail::set_intersection_impl(first1, last1, first2, last2, result, sprout::internal_begin_offset(result));
|
||||
}
|
||||
} // namespace fit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue