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

Function object to retrieve an entry from the storage container in the OXY-API. More...

#include <storage.hpp>

Public Member Functions

maybe< entry_toperator() (IStoragePtr const &stg, std::string const &name) const

Detailed Description

Function object to retrieve an entry from the storage container in the OXY-API.

This function object provides an operator() that takes a storage container pointer and an entry name, and returns a maybe<entry_t> containing the entry if available. It is designed to be used in a constexpr context for compile-time evaluation of entry retrieval operations.

Member Function Documentation

◆ operator()()

maybe< entry_t > oxy::api::get_entry_fn::operator() ( IStoragePtr const & stg,
std::string const & name ) const
Parameters
stg- The storage container pointer from which to retrieve the entry.
name- The name of the entry to retrieve from the storage container.
Returns
A maybe<entry_t> containing the entry if available, or nothing() if not found.