Function operator bool

Synopsis

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

operator bool() const

Description

Check if the cookie is empty.

Return
true means the cookie is not empty
Return
false means the cookie is empty

Source

Lines 215-218 in lib/inc/drogon/Cookie.h.

operator bool() const
{
    return (!key_.empty()) && (!value_.empty());
}





Add Discussion as Guest

Log in to DocsForge