Skip to content

Commit 90f5973

Browse files
committed
document begin
1 parent 2d626c6 commit 90f5973

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

include/boost/multi/array.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ struct dynamic_array
131131
: protected detail::array_allocator<
132132
typename allocator_traits<DummyAlloc>::template rebind_alloc<T>>
133133
, public array_ref<T, D, typename multi::allocator_traits<typename multi::allocator_traits<DummyAlloc>::template rebind_alloc<T>>::pointer>
134-
, boost::multi::random_iterable<dynamic_array<T, D, typename multi::allocator_traits<DummyAlloc>::template rebind_alloc<T>>> {
134+
, private boost::multi::random_iterable<dynamic_array<T, D, typename multi::allocator_traits<DummyAlloc>::template rebind_alloc<T>>> {
135135
static_assert(
136136
std::is_same_v<
137137
std::remove_const_t<typename multi::allocator_traits<DummyAlloc>::value_type>,

include/boost/multi/array_ref.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1815,8 +1815,8 @@ struct const_subarray : array_types<T, D, ElementPtr, Layout> {
18151815
#endif
18161816

18171817
public:
1818-
BOOST_MULTI_HD constexpr auto begin() const& -> const_iterator { return begin_aux_(); } // cppcheck-suppress duplInheritedMember ; to overwrite
1819-
BOOST_MULTI_HD constexpr auto end() const& -> const_iterator { return end_aux_(); } // cppcheck-suppress duplInheritedMember ; to overwrite
1818+
BOOST_MULTI_HD constexpr auto begin() const& -> const_iterator { return begin_aux_(); } // cppcheck-suppress duplInheritedMember ; to overwrite ///< returns an iterator to the beginning
1819+
BOOST_MULTI_HD constexpr auto end() const& -> const_iterator { return end_aux_(); } // cppcheck-suppress duplInheritedMember ; to overwrite ///< returns an iterator to the end
18201820

18211821
BOOST_MULTI_HD constexpr auto cbegin() const& { return begin(); }
18221822
BOOST_MULTI_HD constexpr auto cend() const& { return end(); }

0 commit comments

Comments
 (0)