diff options
author | John Ankarström <john@ankarstrom.se> | 2022-07-22 23:52:22 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-07-22 23:52:22 +0200 |
commit | 21e96c692595f204b91431a90123419e4a1780c4 (patch) | |
tree | fbd273dc24fa590626283dac09bc7671f0562d59 /c/resource.h | |
parent | c1bbba366067f27881195f74cee5d063d1b270b0 (diff) | |
download | EpisodeBrowser-21e96c692595f204b91431a90123419e4a1780c4.tar.gz |
Cache GetSystemMetrics values with variable template.
The variable template could be generalized like this:
template <auto F, auto... A> const auto cache = F(A...);
and instantiated like:
cache<GetSystemMetrics, SM_CXVSCROLL>
It would still be limited to constant function arguments, which
usually isn't a problem for GetSystemMetrics, but might be for
other functions.
Diffstat (limited to 'c/resource.h')
0 files changed, 0 insertions, 0 deletions