Function clear

Synopsis

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

void clear()

Description

remove all topics.

Source

Lines 227-231 in lib/inc/drogon/PubSubService.h.

void clear()
{
    std::unique_lock<SharedMutex> lock(mutex_);
    topicMap_.clear();
}





Add Discussion as Guest

Log in to DocsForge