ADS9324 Driver 0.1.0
API reference
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ads9324::CheckedConfig Class Reference

A configuration proven valid when the program is built. An invalid one does not compile. More...

#include <ads9324_types.hpp>

Public Member Functions

consteval CheckedConfig (const Config &config)
 
constexpr const Config & Get () const &noexcept
 
void Get () const &&=delete
 Not on a temporary: the reference would dangle (KB-CPP20-044).
 

Detailed Description

A configuration proven valid when the program is built. An invalid one does not compile.

constexpr CheckedConfig kBoard{MyConfig()}; runs Validate() at build time; Get() returns the proven configuration.


The documentation for this class was generated from the following file: