-
-
Save brevzin/47d947b268d341b72b471e863e1cc3b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class X { | |
private: | |
Container c; | |
public: | |
// #1: Return an optional | |
optional<V&> lookup(Key const&); | |
// #2: Return a pointer | |
V* lookup(Key const&); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment