Skip to content

Commit

Permalink
struct to class
Browse files Browse the repository at this point in the history
  • Loading branch information
HDembinski committed Apr 24, 2024
1 parent 9739651 commit 67d8641
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/boost/histogram/detail/chunk_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ namespace detail {
// custom container type. If time permits, this will be expanded
// into a proper container type.
template <class ValueType>
struct chunk_vector {
class chunk_vector {
public:
using base = std::vector<ValueType>;
using allocator_type = typename base::allocator_type;
using pointer = typename base::pointer;
Expand Down Expand Up @@ -90,6 +91,7 @@ struct chunk_vector {

size_type size() const noexcept { return vec_.size() / chunk_; }

private:
size_type chunk_;
base vec_;
};
Expand Down

0 comments on commit 67d8641

Please sign in to comment.