Skip to content

Commit

Permalink
Add typename
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJohnson committed Oct 24, 2024
1 parent 39cf8db commit 7c74abf
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions wpiutil/src/main/native/include/wpi/StringMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,24 @@ template <typename T,
typename Allocator = std::allocator<std::pair<const std::string, T>>>
class StringMap : public std::map<std::string, T, std::less<>, Allocator> {
public:
using map_type = std::map<std::string, T, std::less<>>;
using key_type = map_type::key_type;
using mapped_type = map_type::mapped_type;
using value_type = map_type::value_type;
using size_type = map_type::size_type;
using difference_type = map_type::difference_type;
using key_compare = map_type::key_compare;
using allocator_type = map_type::allocator_type;
using reference = map_type::reference;
using const_reference = map_type::const_reference;
using pointer = map_type::pointer;
using const_pointer = map_type::const_pointer;
using iterator = map_type::iterator;
using const_iterator = map_type::const_iterator;
using reverse_iterator = map_type::reverse_iterator;
using const_reverse_iterator = map_type::const_reverse_iterator;
using node_type = map_type::node_type;
using insert_return_type = map_type::insert_return_type;
using map_type = typename std::map<std::string, T, std::less<>>;
using key_type = typename map_type::key_type;
using mapped_type = typename map_type::mapped_type;
using value_type = typename map_type::value_type;
using size_type = typename map_type::size_type;
using difference_type = typename map_type::difference_type;
using key_compare = typename map_type::key_compare;
using allocator_type = typename map_type::allocator_type;
using reference = typename map_type::reference;
using const_reference = typename map_type::const_reference;
using pointer = typename map_type::pointer;
using const_pointer = typename map_type::const_pointer;
using iterator = typename map_type::iterator;
using const_iterator = typename map_type::const_iterator;
using reverse_iterator = typename map_type::reverse_iterator;
using const_reverse_iterator = typename map_type::const_reverse_iterator;
using node_type = typename map_type::node_type;
using insert_return_type = typename map_type::insert_return_type;

StringMap() = default;
explicit StringMap(const Allocator& alloc) : map_type{alloc} {}
Expand Down

0 comments on commit 7c74abf

Please sign in to comment.