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:
parent
52a2178ac1
commit
ad60c8c530
356 changed files with 3183 additions and 3251 deletions
|
@ -2,8 +2,8 @@
|
|||
#define SPROUT_OPERATION_FIT_APPEND_BACK_HPP
|
||||
|
||||
#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/append_back.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
|
||||
|
@ -16,7 +16,7 @@ namespace sprout {
|
|||
template<typename Container, typename Input>
|
||||
struct append_back {
|
||||
typedef sprout::sub_array<
|
||||
typename sprout::fixed_container_traits<
|
||||
typename sprout::container_traits<
|
||||
typename sprout::fixed::result_of::append_back<Container, Input>::type
|
||||
>::internal_type
|
||||
> type;
|
||||
|
@ -33,9 +33,9 @@ namespace sprout {
|
|||
)
|
||||
{
|
||||
return sprout::sub_copy(
|
||||
sprout::get_fixed(sprout::fixed::append_back(cont, input)),
|
||||
sprout::fixed_begin_offset(cont),
|
||||
sprout::fixed_end_offset(cont) + sprout::size(input)
|
||||
sprout::get_internal(sprout::fixed::append_back(cont, input)),
|
||||
sprout::internal_begin_offset(cont),
|
||||
sprout::internal_end_offset(cont) + sprout::size(input)
|
||||
);
|
||||
}
|
||||
} // namespace fit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue