mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
fix index_range implementation
This commit is contained in:
parent
331aaa3559
commit
049d4592c2
78 changed files with 178 additions and 225 deletions
|
@ -5,6 +5,7 @@
|
|||
#include <sprout/index_tuple.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/container/indexes.hpp>
|
||||
#include <sprout/iterator/operation.hpp>
|
||||
|
||||
namespace sprout {
|
||||
|
@ -60,10 +61,7 @@ namespace sprout {
|
|||
{
|
||||
return sprout::fixed::detail::append_impl<typename sprout::fixed::result_of::append<Container, Input>::type>(
|
||||
cont,
|
||||
sprout::index_range<
|
||||
0,
|
||||
sprout::container_traits<typename sprout::fixed::result_of::append<Container, Input>::type>::static_size
|
||||
>::make(),
|
||||
sprout::container_indexes<typename sprout::fixed::result_of::append<Container, Input>::type>::make(),
|
||||
sprout::distance(sprout::internal_begin(cont), pos),
|
||||
sprout::size(input),
|
||||
input
|
||||
|
@ -78,10 +76,7 @@ namespace sprout {
|
|||
{
|
||||
return sprout::fixed::detail::append_impl<typename sprout::fixed::result_of::append<Container, Input>::type>(
|
||||
cont,
|
||||
sprout::index_range<
|
||||
0,
|
||||
sprout::container_traits<typename sprout::fixed::result_of::append<Container, Input>::type>::static_size
|
||||
>::make(),
|
||||
sprout::container_indexes<typename sprout::fixed::result_of::append<Container, Input>::type>::make(),
|
||||
sprout::distance(sprout::internal_begin(cont), sprout::next(sprout::begin(cont), pos)),
|
||||
sprout::size(input),
|
||||
input
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue