Skip to content

Instantly share code, notes, and snippets.

@prehistoricpenguin
Created September 19, 2014 12:02
Show Gist options
  • Save prehistoricpenguin/68cba9c5f894d2b12631 to your computer and use it in GitHub Desktop.
Save prehistoricpenguin/68cba9c5f894d2b12631 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <map>
using namespace std;
struct Foo{
void DoSomething(int val) const;
std::map<int, int> map_;
};
void Foo::DoSomething(int val) const {
// const_iterator in const function
// REFER: effective c++ item 49
auto itr = map_.find(val);
}
int main()
{
cout << "Hello World" << endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment