Function find

Synopsis

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

bool find(const std::string &key)

Description

Retrun true if the data identified by the key exists.

Source

Lines 184-192 in lib/inc/drogon/Session.h.

bool find(const std::string &key)
{
    std::lock_guard<std::mutex> lck(mutex_);
    if (sessionMap_.find(key) == sessionMap_.end())
    {
        return false;
    }
    return true;
}





Add Discussion as Guest

Log in