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>
|
#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) {}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue