ReXGlue SDK
Loading...
Searching...
No Matches
rex::log::OncePerKey< Count > Class Template Reference

#include <rex/logging/log_category.h>

Public Member Functions

bool IsFirst (size_t key) noexcept

Detailed Description

template<size_t Count>
class rex::log::OncePerKey< Count >

Remembers which keys in [0, Count) have been seen, for REXLOG_CAT_ONCE. Thread safe.

Member Function Documentation

◆ IsFirst()

template<size_t Count>
bool rex::log::OncePerKey< Count >::IsFirst ( size_t key)
inlinenoexcept

Marks a key as seen.

Returns
True for the first call with the key, and always true for a key at or above Count.

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