Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 403f3e97 authored by hhakim's avatar hhakim
Browse files

Add RefManager::contains().

parent 2fbb2a40
No related branches found
No related tags found
No related merge requests found
...@@ -48,6 +48,12 @@ void Faust::RefManager::set_free_cb(void(*cb)(void*)) ...@@ -48,6 +48,12 @@ void Faust::RefManager::set_free_cb(void(*cb)(void*))
this->cb = cb; this->cb = cb;
} }
bool Faust::RefManager::contains(void* ref) const
{
return refCounts.find(ref) != refCounts.end();
}
Faust::RefManager::RefManager() Faust::RefManager::RefManager()
{ {
} }
......
...@@ -13,6 +13,8 @@ namespace Faust { ...@@ -13,6 +13,8 @@ namespace Faust {
void release(void* ref); void release(void* ref);
bool contains(void* ref) const;
void set_free_cb(void (*cb)(void*)); void set_free_cb(void (*cb)(void*));
RefManager(); RefManager();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment