|
OXY API 1.0
OXY API Library Documentation
|
Function object to generate an object containing the given contents and type. More...
#include <object.hpp>
Public Member Functions | |
| object_t | operator() (contents_t const &item, eType const &type) const |
| object_t | operator() (std::string const &item, eType const &type) const |
Function object to generate an object containing the given contents and type.
This function object provides two operator() overloads: one that takes a string and a type, and another that takes contents and a type. Both overloads compute the hash of the input and create an object_t instance with the computed hash and specified type. It is designed to be used in a constexpr context for compile-time evaluation of object creation.
|
inline |