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

Function object to create a commit in the storage container in the OXY-API. More...

#include <storage.hpp>

Public Member Functions

maybe< oid_toperator() (IStoragePtr const &stg, signature_t const &author) const

Detailed Description

Function object to create a commit in the storage container in the OXY-API.

This function object provides an operator() that takes a storage container pointer and a signature, and creates a commit in the storage container. It returns a maybe<oid_t> containing the OID of the created commit if successful. It is designed to be used in a constexpr context for compile-time evaluation of commit creation operations.

Member Function Documentation

◆ operator()()

maybe< oid_t > oxy::api::make_commit_fn::operator() ( IStoragePtr const & stg,
signature_t const & author ) const
Parameters
stg- The storage container pointer in which to create the commit.
author- The signature of the author creating the commit.
Returns
A maybe<oid_t> containing the OID of the created commit if successful, or nothing()