Skip to content

Commit

Permalink
Constexpr since C++14
Browse files Browse the repository at this point in the history
  • Loading branch information
ldionne committed Nov 5, 2024
1 parent 1f7f99f commit 8e8b8b9
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions libcxx/include/__iterator/static_bounded_iter.h
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,16 @@ struct __static_bounded_iter {
friend struct __static_bounded_iter;
__static_bounded_iter_storage<_Iterator, _Size> __storage_;

_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR _Iterator& __current() _NOEXCEPT { return __storage_.__current(); }
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR _Iterator __current() const _NOEXCEPT { return __storage_.__current(); }
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR _Iterator __begin() const _NOEXCEPT { return __storage_.__begin(); }
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR _Iterator __end() const _NOEXCEPT { return __storage_.__end(); }
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 _Iterator& __current() _NOEXCEPT {
return __storage_.__current();
}
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 _Iterator __current() const _NOEXCEPT {
return __storage_.__current();
}
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 _Iterator __begin() const _NOEXCEPT {
return __storage_.__begin();
}
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 _Iterator __end() const _NOEXCEPT { return __storage_.__end(); }
};

template <size_t _Size, class _It>
Expand Down

0 comments on commit 8e8b8b9

Please sign in to comment.