mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-04 14:14:09 +00:00
fix counting_iterator
This commit is contained in:
parent
ea22a6ba5c
commit
a9da4b2a1f
11 changed files with 141 additions and 89 deletions
|
@ -12,7 +12,7 @@
|
|||
#include <sprout/range/adaptor/size_enumed.hpp>
|
||||
#include <sprout/range/algorithm/lower_bound.hpp>
|
||||
#include <sprout/range/numeric/partial_sum.hpp>
|
||||
#include <sprout/weed/traits/type/is_c_str.hpp>
|
||||
#include <sprout/type_traits/is_c_str.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace algorithm {
|
||||
|
@ -22,7 +22,7 @@ namespace sprout {
|
|||
template<typename String>
|
||||
struct string_size<
|
||||
String,
|
||||
typename std::enable_if<sprout::weed::traits::is_c_str<String>::value>::type
|
||||
typename std::enable_if<sprout::is_c_str<String>::value>::type
|
||||
>
|
||||
: public std::integral_constant<
|
||||
typename sprout::container_traits<String>::size_type,
|
||||
|
@ -32,7 +32,7 @@ namespace sprout {
|
|||
template<typename String>
|
||||
struct string_size<
|
||||
String,
|
||||
typename std::enable_if<!sprout::weed::traits::is_c_str<String>::value>::type
|
||||
typename std::enable_if<!sprout::is_c_str<String>::value>::type
|
||||
>
|
||||
: public std::integral_constant<
|
||||
typename sprout::container_traits<String>::size_type,
|
||||
|
@ -42,7 +42,7 @@ namespace sprout {
|
|||
|
||||
template<
|
||||
typename String,
|
||||
typename sprout::enabler_if<sprout::weed::traits::is_c_str<String>::value>::type = sprout::enabler
|
||||
typename sprout::enabler_if<sprout::is_c_str<String>::value>::type = sprout::enabler
|
||||
>
|
||||
inline SPROUT_CONSTEXPR typename sprout::container_traits<String>::difference_type
|
||||
str_size(String const& str) {
|
||||
|
@ -50,7 +50,7 @@ namespace sprout {
|
|||
}
|
||||
template<
|
||||
typename String,
|
||||
typename sprout::enabler_if<!sprout::weed::traits::is_c_str<String>::value>::type = sprout::enabler
|
||||
typename sprout::enabler_if<!sprout::is_c_str<String>::value>::type = sprout::enabler
|
||||
>
|
||||
inline SPROUT_CONSTEXPR typename sprout::container_traits<String>::difference_type
|
||||
str_size(String const& str) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue