diff options
| author | levlam <levlam@telegram.org> | 2022-03-12 15:27:14 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2022-03-12 15:27:14 +0300 |
| commit | daef14ade1120dc3a19a3ba1fd6cf90b1c83b8db (patch) | |
| tree | aac074c8b5a8f6b616e87d78f76c961927759805 /tdutils/td/utils/SetNode.h | |
| parent | 62f463b4217ab5966a21ee3044c3e9dafbcfc382 (diff) | |
Return NodePointer instead of iterator in find/emplace.
Diffstat (limited to 'tdutils/td/utils/SetNode.h')
| -rw-r--r-- | tdutils/td/utils/SetNode.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tdutils/td/utils/SetNode.h b/tdutils/td/utils/SetNode.h index 05d22722c..3d1ca522a 100644 --- a/tdutils/td/utils/SetNode.h +++ b/tdutils/td/utils/SetNode.h @@ -14,7 +14,7 @@ namespace td { template <class KeyT> struct SetNode { using public_key_type = KeyT; - using public_type = KeyT; + using public_type = const KeyT; using second_type = KeyT; // TODO: remove second_type? KeyT first{}; @@ -23,7 +23,7 @@ struct SetNode { return first; } - KeyT &get_public() { + const KeyT &get_public() { return first; } |
