mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-12 14:54:10 +00:00
fix nth(), index_of()
This commit is contained in:
parent
251c1d174e
commit
a5e7d61ad3
3 changed files with 26 additions and 26 deletions
|
@ -947,7 +947,7 @@ namespace sprout {
|
|||
: (throw std::out_of_range("basic_string<>: index out of range"), const_iterator())
|
||||
;
|
||||
}
|
||||
SPROUT_CONSTEXPR size_type index_of(iterator p) const SPROUT_NOEXCEPT {
|
||||
SPROUT_CXX14_CONSTEXPR size_type index_of(iterator p) SPROUT_NOEXCEPT {
|
||||
return p.index();
|
||||
}
|
||||
SPROUT_CONSTEXPR size_type index_of(const_iterator p) const SPROUT_NOEXCEPT {
|
||||
|
@ -965,8 +965,8 @@ namespace sprout {
|
|||
? data() + i
|
||||
: (throw std::out_of_range("basic_string<>: index out of range"), const_iterator())
|
||||
;
|
||||
}
|
||||
SPROUT_CONSTEXPR size_type index_of(iterator p) const SPROUT_NOEXCEPT {
|
||||
}SPROUT_CXX14_CONSTEXPR
|
||||
SPROUT_CONSTEXPR size_type index_of(iterator p) SPROUT_NOEXCEPT {
|
||||
return sprout::distance(begin(), p);
|
||||
}
|
||||
SPROUT_CONSTEXPR size_type index_of(const_iterator p) const SPROUT_NOEXCEPT {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue