Skip to content

Instantly share code, notes, and snippets.

@Santarh
Created February 23, 2012 05:07
Show Gist options
  • Save Santarh/1890445 to your computer and use it in GitHub Desktop.
Save Santarh/1890445 to your computer and use it in GitHub Desktop.
Yaba code
#include <vector>
class Foo;
class Manage
{
private:
std::vector<Foo> m_vec;
public:
Manage(){};
~Manage(){};
void PushObj( Foo& obj ){ m_vec.push_back(obj); };
};
int main()
{
Manage manager;
Foo hoge;
manager.PushObj(hoge);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment