This is just as a code example for the future interviews. This is EventListener(like it is in c#) implemented in c++ .I'm using some c++11 features (like final), but you can easily remove them if you want. Check wiki-page to see usage.

Need to be done: thread-safe; safe dispose of the caller-object(which invoking a delegate); improve event-caller;


19.12.14 - added some improvements

Features

  • c# events style
  • Simple events creation
  • Simple subscription / desubscription
  • Easy Event Types creation
  • support static or non member function
  • Simple interface (EventHolder.h, EventListener.h, EventArgs.h)

Project Activity

See All Activity >

Follow C++ EventListener (C# style)

C++ EventListener (C# style) Web Site

Other Useful Business Software
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of C++ EventListener (C# style)!

Additional Project Details

Registered

2014-12-18