Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
util::prometheus::SomeBoolImpl Concept Reference

Specifies an integer metric implementation that can back AnyBool (e.g. GaugeInt). More...

#include <Bool.hpp>

Concept definition

template<typename T>
concept SomeBoolImpl = requires(T a) {
{ a.set(0) } -> std::same_as<void>;
{ a.value() } -> std::same_as<int64_t>;
}
Specifies an integer metric implementation that can back AnyBool (e.g. GaugeInt).
Definition Bool.hpp:20

Detailed Description

Specifies an integer metric implementation that can back AnyBool (e.g. GaugeInt).

Template Parameters
TThe type to check; must provide set(int64_t) and value() returning int64_t