mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-04 14:14:09 +00:00
fix iterator parameter
This commit is contained in:
parent
6e8b5ea395
commit
802f2fbaed
111 changed files with 607 additions and 633 deletions
|
@ -20,7 +20,7 @@ namespace sprout {
|
|||
template<typename RandomAccessIterator, typename T>
|
||||
inline SPROUT_CONSTEXPR bool
|
||||
all_of_equal_impl_ra(
|
||||
RandomAccessIterator first, RandomAccessIterator last, T const& value,
|
||||
RandomAccessIterator const& first, RandomAccessIterator const& last, T const& value,
|
||||
typename std::iterator_traits<RandomAccessIterator>::difference_type pivot
|
||||
)
|
||||
{
|
||||
|
@ -41,7 +41,7 @@ namespace sprout {
|
|||
bool
|
||||
>::type
|
||||
all_of_equal(
|
||||
RandomAccessIterator first, RandomAccessIterator last, T const& value,
|
||||
RandomAccessIterator const& first, RandomAccessIterator const& last, T const& value,
|
||||
std::random_access_iterator_tag*
|
||||
)
|
||||
{
|
||||
|
@ -54,7 +54,7 @@ namespace sprout {
|
|||
inline SPROUT_CONSTEXPR sprout::pair<InputIterator, bool>
|
||||
all_of_equal_impl_1(
|
||||
sprout::pair<InputIterator, bool> const& current,
|
||||
InputIterator last, T const& value, typename std::iterator_traits<InputIterator>::difference_type n
|
||||
InputIterator const& last, T const& value, typename std::iterator_traits<InputIterator>::difference_type n
|
||||
)
|
||||
{
|
||||
typedef sprout::pair<InputIterator, bool> type;
|
||||
|
@ -73,7 +73,7 @@ namespace sprout {
|
|||
inline SPROUT_CONSTEXPR sprout::pair<InputIterator, bool>
|
||||
all_of_equal_impl(
|
||||
sprout::pair<InputIterator, bool> const& current,
|
||||
InputIterator last, T const& value, typename std::iterator_traits<InputIterator>::difference_type n
|
||||
InputIterator const& last, T const& value, typename std::iterator_traits<InputIterator>::difference_type n
|
||||
)
|
||||
{
|
||||
return !current.second || current.first == last ? current
|
||||
|
@ -89,7 +89,7 @@ namespace sprout {
|
|||
template<typename InputIterator, typename T>
|
||||
inline SPROUT_CONSTEXPR bool
|
||||
all_of_equal(
|
||||
InputIterator first, InputIterator last, T const& value,
|
||||
InputIterator const& first, InputIterator const& last, T const& value,
|
||||
std::input_iterator_tag*
|
||||
)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue