Function insert

Summary

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

(1) void insert(const std::string &key, any &&obj)

(2) void insert(const std::string &key, const any &obj)

Function overload

Synopsis

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

void insert(const std::string &key, any &&obj)

Description

Insert an item identified by the key parameter into the data set;.

Source

Lines 55-58 in lib/inc/drogon/HttpViewData.h.

void insert(const std::string &key, any &&obj)
{
    viewData_[key] = std::move(obj);
}

Synopsis

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

void insert(const std::string &key, const any &obj)

Description

No description yet.

Source

Lines 59-62 in lib/inc/drogon/HttpViewData.h.

void insert(const std::string &key, const any &obj)
{
    viewData_[key] = obj;
}





Add Discussion as Guest

Log in to DocsForge