mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-04 14:14:09 +00:00
sprout::index_t 追加
This commit is contained in:
parent
c9471df964
commit
d5dcbaf4b2
44 changed files with 80 additions and 101 deletions
|
@ -1,7 +1,6 @@
|
|||
#ifndef SPROUT_ALGORITHM_FIXED_COPY_HPP
|
||||
#define SPROUT_ALGORITHM_FIXED_COPY_HPP
|
||||
|
||||
#include <cstddef>
|
||||
#include <iterator>
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
|
@ -16,7 +15,7 @@
|
|||
namespace sprout {
|
||||
namespace fixed {
|
||||
namespace detail {
|
||||
template<typename RandomAccessIterator, typename Result, std::ptrdiff_t... Indexes>
|
||||
template<typename RandomAccessIterator, typename Result, sprout::index_t... Indexes>
|
||||
SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm<Result>::type copy_impl_ra(
|
||||
RandomAccessIterator first,
|
||||
RandomAccessIterator last,
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
namespace sprout {
|
||||
namespace fixed {
|
||||
namespace detail {
|
||||
template<typename RandomAccessIterator, typename Result, std::ptrdiff_t... Indexes>
|
||||
template<typename RandomAccessIterator, typename Result, sprout::index_t... Indexes>
|
||||
SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm<Result>::type copy_backward_impl_ra(
|
||||
RandomAccessIterator first,
|
||||
RandomAccessIterator last,
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef SPROUT_ALGORITHM_FIXED_FILL_HPP
|
||||
#define SPROUT_ALGORITHM_FIXED_FILL_HPP
|
||||
|
||||
#include <cstddef>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/index_tuple.hpp>
|
||||
#include <sprout/fixed_container/traits.hpp>
|
||||
|
@ -12,7 +11,7 @@
|
|||
namespace sprout {
|
||||
namespace fixed {
|
||||
namespace detail {
|
||||
template<typename Container, typename T, std::ptrdiff_t... Indexes>
|
||||
template<typename Container, typename T, sprout::index_t... Indexes>
|
||||
SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm<Container>::type fill_impl(
|
||||
Container const& cont,
|
||||
T const& value,
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef SPROUT_ALGORITHM_FIXED_REPLACE_COPY_HPP
|
||||
#define SPROUT_ALGORITHM_FIXED_REPLACE_COPY_HPP
|
||||
|
||||
#include <cstddef>
|
||||
#include <iterator>
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
|
@ -17,7 +16,7 @@
|
|||
namespace sprout {
|
||||
namespace fixed {
|
||||
namespace detail {
|
||||
template<typename RandomAccessIterator, typename Result, typename T, std::ptrdiff_t... Indexes>
|
||||
template<typename RandomAccessIterator, typename Result, typename T, sprout::index_t... Indexes>
|
||||
SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm<Result>::type replace_copy_impl_ra(
|
||||
RandomAccessIterator first,
|
||||
RandomAccessIterator last,
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef SPROUT_ALGORITHM_FIXED_REPLACE_COPY_IF_HPP
|
||||
#define SPROUT_ALGORITHM_FIXED_REPLACE_COPY_IF_HPP
|
||||
|
||||
#include <cstddef>
|
||||
#include <iterator>
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
|
@ -16,7 +15,7 @@
|
|||
namespace sprout {
|
||||
namespace fixed {
|
||||
namespace detail {
|
||||
template<typename RandomAccessIterator, typename Result, typename T, typename Predicate, std::ptrdiff_t... Indexes>
|
||||
template<typename RandomAccessIterator, typename Result, typename T, typename Predicate, sprout::index_t... Indexes>
|
||||
SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm<Result>::type replace_copy_if_impl_ra(
|
||||
RandomAccessIterator first,
|
||||
RandomAccessIterator last,
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef SPROUT_ALGORITHM_FIXED_REVERSE_COPY_HPP
|
||||
#define SPROUT_ALGORITHM_FIXED_REVERSE_COPY_HPP
|
||||
|
||||
#include <cstddef>
|
||||
#include <iterator>
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
|
@ -16,7 +15,7 @@
|
|||
namespace sprout {
|
||||
namespace fixed {
|
||||
namespace detail {
|
||||
template<typename RandomAccessIterator, typename Result, std::ptrdiff_t... Indexes>
|
||||
template<typename RandomAccessIterator, typename Result, sprout::index_t... Indexes>
|
||||
SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm<Result>::type reverse_copy_impl_ra(
|
||||
RandomAccessIterator first,
|
||||
RandomAccessIterator last,
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef SPROUT_ALGORITHM_FIXED_ROTATE_COPY_HPP
|
||||
#define SPROUT_ALGORITHM_FIXED_ROTATE_COPY_HPP
|
||||
|
||||
#include <cstddef>
|
||||
#include <iterator>
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
|
@ -16,7 +15,7 @@
|
|||
namespace sprout {
|
||||
namespace fixed {
|
||||
namespace detail {
|
||||
template<typename RandomAccessIterator, typename Result, std::ptrdiff_t... Indexes>
|
||||
template<typename RandomAccessIterator, typename Result, sprout::index_t... Indexes>
|
||||
SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm<Result>::type rotate_copy_impl_ra(
|
||||
RandomAccessIterator first,
|
||||
RandomAccessIterator middle,
|
||||
|
|
|
@ -54,7 +54,7 @@ namespace sprout {
|
|||
: sprout::array<std::ptrdiff_t, N>{{}}
|
||||
;
|
||||
}
|
||||
template<typename Container, typename Shuffled, std::ptrdiff_t... Indexes>
|
||||
template<typename Container, typename Shuffled, sprout::index_t... Indexes>
|
||||
SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm<Container>::type shuffle_impl_1(
|
||||
Container const& cont,
|
||||
sprout::index_tuple<Indexes...>,
|
||||
|
@ -72,7 +72,7 @@ namespace sprout {
|
|||
)...
|
||||
);
|
||||
}
|
||||
template<typename Container, typename UniformRandomNumberGenerator, std::ptrdiff_t... Indexes>
|
||||
template<typename Container, typename UniformRandomNumberGenerator, sprout::index_t... Indexes>
|
||||
SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm<Container>::type shuffle_impl(
|
||||
Container const& cont,
|
||||
sprout::index_tuple<Indexes...> indexes,
|
||||
|
|
|
@ -74,7 +74,7 @@ namespace sprout {
|
|||
)
|
||||
;
|
||||
}
|
||||
template<typename UniformRandomNumberGenerator, typename Container, typename Shuffled, std::ptrdiff_t... Indexes>
|
||||
template<typename UniformRandomNumberGenerator, typename Container, typename Shuffled, sprout::index_t... Indexes>
|
||||
SPROUT_CONSTEXPR inline sprout::tuples::tuple<
|
||||
typename sprout::fixed::result_of::algorithm<Container>::type,
|
||||
typename std::decay<UniformRandomNumberGenerator>::type
|
||||
|
@ -102,7 +102,7 @@ namespace sprout {
|
|||
sprout::tuples::get<1>(shuffled)
|
||||
);
|
||||
}
|
||||
template<typename Container, typename UniformRandomNumberGenerator, std::ptrdiff_t... Indexes>
|
||||
template<typename Container, typename UniformRandomNumberGenerator, sprout::index_t... Indexes>
|
||||
SPROUT_CONSTEXPR inline sprout::tuples::tuple<
|
||||
typename sprout::fixed::result_of::algorithm<Container>::type,
|
||||
typename std::decay<UniformRandomNumberGenerator>::type
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef SPROUT_ALGORITHM_FIXED_SWAP_ELEMENT_COPY_HPP
|
||||
#define SPROUT_ALGORITHM_FIXED_SWAP_ELEMENT_COPY_HPP
|
||||
|
||||
#include <cstddef>
|
||||
#include <iterator>
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
|
@ -16,7 +15,7 @@
|
|||
namespace sprout {
|
||||
namespace fixed {
|
||||
namespace detail {
|
||||
template<typename RandomAccessIterator, typename Result, std::ptrdiff_t... Indexes>
|
||||
template<typename RandomAccessIterator, typename Result, sprout::index_t... Indexes>
|
||||
SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm<Result>::type swap_element_copy_impl_ra(
|
||||
RandomAccessIterator first,
|
||||
RandomAccessIterator last,
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef SPROUT_ALGORITHM_FIXED_TRANSFORM_HPP
|
||||
#define SPROUT_ALGORITHM_FIXED_TRANSFORM_HPP
|
||||
|
||||
#include <cstddef>
|
||||
#include <iterator>
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
|
@ -16,7 +15,7 @@
|
|||
namespace sprout {
|
||||
namespace fixed {
|
||||
namespace detail {
|
||||
template<typename RandomAccessIterator, typename Result, typename UnaryOperation, std::ptrdiff_t... Indexes>
|
||||
template<typename RandomAccessIterator, typename Result, typename UnaryOperation, sprout::index_t... Indexes>
|
||||
SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm<Result>::type transform_impl_ra(
|
||||
RandomAccessIterator first,
|
||||
RandomAccessIterator last,
|
||||
|
@ -118,7 +117,7 @@ namespace sprout {
|
|||
}
|
||||
|
||||
namespace detail {
|
||||
template<typename RandomAccessIterator1, typename RandomAccessIterator2, typename Result, typename BinaryOperation, std::ptrdiff_t... Indexes>
|
||||
template<typename RandomAccessIterator1, typename RandomAccessIterator2, typename Result, typename BinaryOperation, sprout::index_t... Indexes>
|
||||
SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm<Result>::type transform_impl_ra(
|
||||
RandomAccessIterator1 first1,
|
||||
RandomAccessIterator1 last1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue