Database System 0.1.0
Advanced C++20 Database System with Multi-Backend Support
Loading...
Searching...
No Matches
database::concepts::BackendFactory Concept Reference

A callable that creates database backends. More...

#include <concepts.h>

Concept definition

template<typename F>
std::convertible_to<std::invoke_result_t<F>, std::unique_ptr<core::database_backend>>
A callable that creates database backends.
Definition concepts.h:193
A callable type that can be invoked with given arguments.
Definition concepts.h:77

Detailed Description

A callable that creates database backends.

Example usage:

template<BackendFactory F>
void register_backend(const std::string& name, F&& factory) {
backends_[name] = std::forward<F>(factory);
}

Definition at line 193 of file concepts.h.