MCPcopy Create free account
hub / github.com/Tessil/ordered-map / ValueSelect

Class ValueSelect

include/tsl/ordered_map.h:100–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98 };
99
100 class ValueSelect {
101 public:
102 using value_type = T;
103
104 const value_type& operator()(
105 const std::pair<Key, T>& key_value) const noexcept {
106 return key_value.second;
107 }
108
109 value_type& operator()(std::pair<Key, T>& key_value) noexcept {
110 return key_value.second;
111 }
112 };
113
114 using ht =
115 detail_ordered_hash::ordered_hash<std::pair<Key, T>, KeySelect,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected