Class CallbackEntry

Synopsis

#include <lib/inc/drogon/CacheMap.h>

class CallbackEntry

Description

A utility class for CacheMap.

Methods

CallbackEntry
~CallbackEntry

Source

Lines 39-52 in lib/inc/drogon/CacheMap.h.

class CallbackEntry
{
  public:
    CallbackEntry(std::function<void()> cb) : cb_(std::move(cb))
    {
    }
    ~CallbackEntry()
    {
        cb_();
    }

  private:
    std::function<void()> cb_;
};





Add Discussion as Guest

Log in to DocsForge