YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
yaclib::detail::OneCounter< CounterBase, Deleter > Struct Template Reference

#include <unique_counter.hpp>

Inheritance diagram for yaclib::detail::OneCounter< CounterBase, Deleter >:
[legend]
Collaboration diagram for yaclib::detail::OneCounter< CounterBase, Deleter >:
[legend]

Public Member Functions

template<typename... Args>
 OneCounter (std::size_t, Args &&... args) noexcept(std::is_nothrow_constructible_v< CounterBase, Args &&... >)
 
constexpr bool SubEqual (std::size_t) const
 
void Add (std::size_t) noexcept
 
void Sub (std::size_t) noexcept
 

Detailed Description

template<typename CounterBase, typename Deleter = DefaultDeleter>
struct yaclib::detail::OneCounter< CounterBase, Deleter >

Definition at line 8 of file unique_counter.hpp.

Constructor & Destructor Documentation

◆ OneCounter()

template<typename CounterBase , typename Deleter = DefaultDeleter>
template<typename... Args>
yaclib::detail::OneCounter< CounterBase, Deleter >::OneCounter ( std::size_t  ,
Args &&...  args 
)
inlinenoexcept

Definition at line 10 of file unique_counter.hpp.

Member Function Documentation

◆ Add()

template<typename CounterBase , typename Deleter = DefaultDeleter>
void yaclib::detail::OneCounter< CounterBase, Deleter >::Add ( std::size_t  )
inlinenoexcept

Definition at line 19 of file unique_counter.hpp.

◆ Sub()

template<typename CounterBase , typename Deleter = DefaultDeleter>
void yaclib::detail::OneCounter< CounterBase, Deleter >::Sub ( std::size_t  )
inlinenoexcept

Definition at line 22 of file unique_counter.hpp.

◆ SubEqual()

template<typename CounterBase , typename Deleter = DefaultDeleter>
constexpr bool yaclib::detail::OneCounter< CounterBase, Deleter >::SubEqual ( std::size_t  ) const
inlineconstexpr

Definition at line 14 of file unique_counter.hpp.


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