mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
fix next|prev_permutation implementations
This commit is contained in:
parent
057dec630c
commit
2c0b1d4513
8 changed files with 150 additions and 141 deletions
|
@ -12,7 +12,6 @@
|
|||
#include <climits>
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
//#include <sprout/bit/popcount.hpp>
|
||||
#include <sprout/bit/shlr.hpp>
|
||||
|
||||
namespace sprout {
|
||||
|
@ -31,11 +30,6 @@ namespace sprout {
|
|||
return __builtin_parityll(x);
|
||||
}
|
||||
# endif
|
||||
// template<typename Integral>
|
||||
// inline SPROUT_CONSTEXPR int
|
||||
// parity(Integral x) {
|
||||
// return sprout::popcount(x) & 1;
|
||||
// }
|
||||
template<std::size_t N, typename Integral>
|
||||
inline SPROUT_CONSTEXPR typename std::enable_if<
|
||||
(N == 1),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue