Function find

Synopsis

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

bool find(const std::string &key)

Description

Retrun true if the data identified by the key exists.

Source

Lines 101-108 in lib/inc/drogon/Attribute.h.

bool find(const std::string &key)
{
    if (attributesMap_.find(key) == attributesMap_.end())
    {
        return false;
    }
    return true;
}





Add Discussion as Guest

Log in