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

[desuructive changes] container traits new interface [破壊的変更]

This commit is contained in:
bolero-MURAKAMI 2012-03-31 16:24:13 +09:00
parent 52a2178ac1
commit ad60c8c530
356 changed files with 3183 additions and 3251 deletions

View file

@ -3,8 +3,8 @@
#include <cstddef>
#include <sprout/config.hpp>
#include <sprout/fixed_container/traits.hpp>
#include <sprout/fixed_container/functions.hpp>
#include <sprout/container/traits.hpp>
#include <sprout/container/functions.hpp>
#include <sprout/operation/fixed/pop_front_n.hpp>
#include <sprout/sub_array.hpp>
@ -18,7 +18,7 @@ namespace sprout {
struct pop_front_n {
public:
typedef sprout::sub_array<
typename sprout::fixed_container_traits<
typename sprout::container_traits<
typename sprout::fixed::result_of::pop_front_n<N, Container>::type
>::internal_type
> type;
@ -34,9 +34,9 @@ namespace sprout {
)
{
return sprout::sub_copy(
sprout::get_fixed(sprout::fixed::pop_front_n<N>(cont)),
sprout::fixed_begin_offset(cont),
sprout::fixed_end_offset(cont) - N
sprout::get_internal(sprout::fixed::pop_front_n<N>(cont)),
sprout::internal_begin_offset(cont),
sprout::internal_end_offset(cont) - N
);
}
} // namespace fit