|
OXY API 1.0
OXY API Library Documentation
|
Function object to retrieve a commit from the storage container in the OXY-API. More...
#include <storage.hpp>
Public Member Functions | |
| maybe< commit_t > | operator() (IStoragePtr const &stg, oid_t const &parent) const |
| maybe< commit_t > | operator() (IStoragePtr const &stg, std::string const &reference_name) const |
Function object to retrieve a commit from the storage container in the OXY-API.
This function object provides two operator() overloads: one that takes a storage container pointer and a reference name, and another that takes a storage container pointer and an OID. Both overloads return a maybe<commit_t> containing the commit if available. It is designed to be used in a constexpr context for compile-time evaluation of commit retrieval operations.