|
liblloyal 1.0.0
Branched Inference for llama.cpp
|
Classes | |
| struct | is_optional |
| Type trait to detect std::optional<T> More... | |
| struct | is_optional< std::optional< T > > |
Functions | |
| template<class X , class T > | |
| constexpr T | as_value (const X &x, T def) |
| Extract value from either T or std::optional<T> with fallback. | |
|
constexpr |
Extract value from either T or std::optional<T> with fallback.
Handles both:
Used by sampler to accept Nitrogen-generated params (which use std::optional)
Definition at line 50 of file sampler.hpp.