OXY API 1.0
OXY API Library Documentation
Loading...
Searching...
No Matches
oxy::api::set_contents_fn Struct Reference

Function object to set contents in a storage container in the OXY-API. More...

#include <storage.hpp>

Public Member Functions

oid_t operator() (IStoragePtr const &stg, contents_t const &contents) const

Detailed Description

Function object to set contents in a storage container in the OXY-API.

This function object provides an operator() that takes a storage container pointer and an OID, and sets the contents in the storage container. It returns the OID of the set contents. It is designed to be used in a constexpr context for compile-time evaluation of contents setting operations.

Member Function Documentation

◆ operator()()

oid_t oxy::api::set_contents_fn::operator() ( IStoragePtr const & stg,
contents_t const & contents ) const
Parameters
stg- The storage container pointer in which to set contents.
contents- The contents to set in the storage container.
Returns
The OID of the set contents in the storage container.