mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-04 14:14:09 +00:00
fix nth(), index_of()
This commit is contained in:
parent
251c1d174e
commit
a5e7d61ad3
3 changed files with 26 additions and 26 deletions
|
@ -230,7 +230,7 @@ namespace sprout {
|
|||
: (throw std::out_of_range("array<>: 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 {
|
||||
|
@ -249,7 +249,7 @@ namespace sprout {
|
|||
: (throw std::out_of_range("array<>: 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 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