Go to the documentation of this file.
15 #ifndef BELUGA_POLICIES_EVERY_N_HPP
16 #define BELUGA_POLICIES_EVERY_N_HPP
constexpr detail::make_policy_fn make_policy
Make policy function objects.
Implementation detail for the every_n_policy.
constexpr every_n_policy(std::size_t count)
Constructor.
constexpr bool operator()()
Call operator overload.
constexpr detail::every_n_fn every_n
Policy that triggers an action every N calls.
Implementation detail for an every_n_fn object.
std::size_t current_
The current count of calls.
std::size_t count_
The count specifying when the action should be triggered.
constexpr auto operator()(std::size_t count) const
Overload that creates a policy closure.
beluga
Author(s):
autogenerated on Tue Jul 16 2024 02:59:53