xo-refcnt: ns: xo::ref::rp -> xo::rp

This commit is contained in:
Roland Conybeare 2024-08-05 14:28:14 -04:00
commit 0c45d2b883
2 changed files with 8 additions and 4 deletions

View file

@ -10,6 +10,14 @@
#include <cassert> #include <cassert>
namespace xo { namespace xo {
namespace ref {
template <typename T>
class intrusive_ptr;
}
template <typename T>
using rp = ref::intrusive_ptr<T>;
namespace ref { namespace ref {
class Refcount; class Refcount;
@ -153,9 +161,6 @@ namespace xo {
inline bool operator==(intrusive_ptr<T> const & x, inline bool operator==(intrusive_ptr<T> const & x,
intrusive_ptr<T> const & y) { return intrusive_ptr<T>::compare(x, y) == 0; } intrusive_ptr<T> const & y) { return intrusive_ptr<T>::compare(x, y) == 0; }
template<typename T>
using rp = intrusive_ptr<T>;
class Refcount { class Refcount {
public: public:
Refcount() : reference_counter_(0) {} Refcount() : reference_counter_(0) {}

View file

@ -9,7 +9,6 @@
namespace xo { namespace xo {
using xo::ref::Refcount; using xo::ref::Refcount;
using xo::ref::Borrow; using xo::ref::Borrow;
using xo::ref::rp;
using xo::ref::brw; using xo::ref::brw;
using xo::ref::intrusive_ptr_refcount; using xo::ref::intrusive_ptr_refcount;
using xo::ref::intrusive_ptr_add_ref; using xo::ref::intrusive_ptr_add_ref;