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

Class KeySelect

include/tsl/ordered_map.h:86–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 using has_is_transparent = tsl::detail_ordered_hash::has_is_transparent<U>;
85
86 class KeySelect {
87 public:
88 using key_type = Key;
89
90 const key_type& operator()(
91 const std::pair<Key, T>& key_value) const noexcept {
92 return key_value.first;
93 }
94
95 key_type& operator()(std::pair<Key, T>& key_value) noexcept {
96 return key_value.first;
97 }
98 };
99
100 class ValueSelect {
101 public:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected