mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-12 14:54:10 +00:00
fix container_traits for array-like classes
fix coding style algorithm/
This commit is contained in:
parent
06f1933220
commit
0c00166c5f
123 changed files with 1608 additions and 2224 deletions
|
@ -12,9 +12,9 @@ namespace sprout {
|
|||
namespace fit {
|
||||
namespace detail {
|
||||
template<typename Container, typename Generator, typename... Inits>
|
||||
inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm<Container>::type recurrence_impl(
|
||||
Container const& cont,
|
||||
Generator const& gen,
|
||||
inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm<Container>::type
|
||||
recurrence_impl(
|
||||
Container const& cont, Generator const& gen,
|
||||
typename sprout::container_traits<Container>::difference_type offset,
|
||||
Inits const&... inits
|
||||
)
|
||||
|
@ -30,12 +30,8 @@ namespace sprout {
|
|||
// recurrence
|
||||
//
|
||||
template<typename Container, typename Generator, typename... Inits>
|
||||
inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm<Container>::type recurrence(
|
||||
Container const& cont,
|
||||
Generator const& gen,
|
||||
Inits const&... inits
|
||||
)
|
||||
{
|
||||
inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm<Container>::type
|
||||
recurrence(Container const& cont, Generator const& gen, Inits const&... inits) {
|
||||
return sprout::fit::detail::recurrence_impl(cont, gen, sprout::internal_begin_offset(cont), inits...);
|
||||
}
|
||||
} // namespace fit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue