mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-04 14:14:09 +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
|
@ -15,8 +15,7 @@ namespace sprout {
|
|||
template<typename Container, typename Permutation>
|
||||
inline SPROUT_CONSTEXPR sprout::pair<typename sprout::fit::result_of::algorithm<Container>::type, bool>
|
||||
prev_permutation_impl_1(
|
||||
Container const& cont,
|
||||
Permutation const& perm,
|
||||
Container const& cont, Permutation const& perm,
|
||||
typename sprout::container_traits<Container>::difference_type offset
|
||||
)
|
||||
{
|
||||
|
@ -33,8 +32,7 @@ namespace sprout {
|
|||
template<typename Container, typename Compare>
|
||||
inline SPROUT_CONSTEXPR sprout::pair<typename sprout::fit::result_of::algorithm<Container>::type, bool>
|
||||
prev_permutation_impl(
|
||||
Container const& cont,
|
||||
Compare comp,
|
||||
Container const& cont, Compare comp,
|
||||
typename sprout::container_traits<Container>::difference_type offset
|
||||
)
|
||||
{
|
||||
|
@ -46,11 +44,7 @@ namespace sprout {
|
|||
//
|
||||
template<typename Container, typename Compare>
|
||||
inline SPROUT_CONSTEXPR sprout::pair<typename sprout::fit::result_of::algorithm<Container>::type, bool>
|
||||
prev_permutation(
|
||||
Container const& cont,
|
||||
Compare comp
|
||||
)
|
||||
{
|
||||
prev_permutation(Container const& cont, Compare comp) {
|
||||
return sprout::fit::detail::prev_permutation_impl(cont, comp, sprout::internal_begin_offset(cont));
|
||||
}
|
||||
|
||||
|
@ -70,10 +64,7 @@ namespace sprout {
|
|||
//
|
||||
template<typename Container>
|
||||
inline SPROUT_CONSTEXPR sprout::pair<typename sprout::fit::result_of::algorithm<Container>::type, bool>
|
||||
prev_permutation(
|
||||
Container const& cont
|
||||
)
|
||||
{
|
||||
prev_permutation(Container const& cont) {
|
||||
return sprout::fit::detail::prev_permutation_impl(cont, sprout::internal_begin_offset(cont));
|
||||
}
|
||||
} // namespace fit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue