xo-refcnt: ns: xo::ref::rp -> xo::rp
This commit is contained in:
parent
b6ba761551
commit
0c45d2b883
2 changed files with 8 additions and 4 deletions
|
|
@ -10,6 +10,14 @@
|
|||
#include <cassert>
|
||||
|
||||
namespace xo {
|
||||
namespace ref {
|
||||
template <typename T>
|
||||
class intrusive_ptr;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
using rp = ref::intrusive_ptr<T>;
|
||||
|
||||
namespace ref {
|
||||
class Refcount;
|
||||
|
||||
|
|
@ -153,9 +161,6 @@ namespace xo {
|
|||
inline bool operator==(intrusive_ptr<T> const & x,
|
||||
intrusive_ptr<T> const & y) { return intrusive_ptr<T>::compare(x, y) == 0; }
|
||||
|
||||
template<typename T>
|
||||
using rp = intrusive_ptr<T>;
|
||||
|
||||
class Refcount {
|
||||
public:
|
||||
Refcount() : reference_counter_(0) {}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@
|
|||
namespace xo {
|
||||
using xo::ref::Refcount;
|
||||
using xo::ref::Borrow;
|
||||
using xo::ref::rp;
|
||||
using xo::ref::brw;
|
||||
using xo::ref::intrusive_ptr_refcount;
|
||||
using xo::ref::intrusive_ptr_add_ref;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue