16 lines
201 B
C++
16 lines
201 B
C++
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "detail.hpp"
|
||
|
|
|
||
|
|
namespace demo {
|
||
|
|
|
||
|
|
struct Config {
|
||
|
|
int limit;
|
||
|
|
};
|
||
|
|
|
||
|
|
inline int effective_limit(const Config& config) {
|
||
|
|
return normalize(config.limit);
|
||
|
|
}
|
||
|
|
|
||
|
|
} // namespace demo
|