Skip to content

Commit

Permalink
Add const get_inner().
Browse files Browse the repository at this point in the history
  • Loading branch information
greg7mdp committed Sep 21, 2024
1 parent 44ff8b5 commit f81317c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/gtl/phmap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4022,6 +4022,8 @@ class parallel_hash_set {
// unsafe, for internal use only
Inner& get_inner(size_t idx) { return sets_[idx]; }

const Inner& get_inner(size_t idx) const { return sets_[idx]; }

// Extension API: support for heterogeneous keys.
//
// std::unordered_set<std::string> s;
Expand Down

0 comments on commit f81317c

Please sign in to comment.