Loading...
Searching...
No Matches
PotCapabilities.h File Reference
#include "Potential.h"
#include <concepts>
#include <type_traits>

Go to the source code of this file.

Namespaces

namespace  eonc
 RAII resource manager for the ARTn C library with global synchronization.

Concepts

concept  eonc::ThreadSafeQueryable
 Duck-typed thread-safety query.

Functions

template<class P>
requires ThreadSafeQueryable<P>
bool eonc::potIsThreadSafe (const P &p) noexcept
template<class P>
requires requires(const P &p) { { p.isSharedInstanceThreadSafe() } -> std::convertible_to<bool>; }
bool eonc::potAllowsSharedInstance (const P &p) noexcept