1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

algorithm, operation 全面修正

This commit is contained in:
bolero-MURAKAMI 2011-09-03 22:26:26 +09:00
parent 21f5d5191a
commit 5e67195030
244 changed files with 4764 additions and 831 deletions

View file

@ -17,7 +17,11 @@ namespace sprout {
template<std::size_t N, typename Container>
struct pop_front_n {
public:
typedef sprout::sub_array<typename sprout::fixed::result_of::pop_front_n<N, Container>::type> type;
typedef sprout::sub_array<
typename sprout::fixed_container_traits<
typename sprout::fixed::result_of::pop_front_n<N, Container>::type
>::internal_type
> type;
};
} // namespace result_of
@ -30,7 +34,7 @@ namespace sprout {
)
{
return sprout::sub_copy(
sprout::fixed::pop_front_n<N>(cont),
sprout::get_fixed(sprout::fixed::pop_front_n<N>(cont)),
sprout::fixed_begin_offset(cont),
sprout::fixed_end_offset(cont) - N
);