libcopp
2.3.1
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
Functions
_
a
c
d
f
g
h
i
m
o
p
r
s
t
w
y
Variables
_
a
b
c
d
e
f
g
h
l
m
o
p
r
s
t
u
w
x
Typedefs
Enumerations
Enumerator
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Typedefs
_
a
b
c
d
e
f
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerations
Enumerator
e
l
s
u
Related Symbols
_
d
e
i
l
o
r
s
w
Files
File List
Globals
All
_
b
c
e
g
j
l
m
o
p
r
s
t
u
w
Functions
b
c
g
j
m
o
p
r
s
t
Variables
b
c
g
m
s
t
Typedefs
Enumerations
Enumerator
c
e
Macros
_
c
l
m
s
t
u
w
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
src
libcopp
utils
memory
rc_ptr.cpp
Go to the documentation of this file.
1
// Copyright 2025 owent
2
// Licenses under the MIT License
3
4
#include "
libcopp/utils/memory/rc_ptr.h
"
5
6
#include <cstdlib>
7
8
LIBCOPP_COPP_NAMESPACE_BEGIN
9
namespace
memory
{
10
11
LIBCOPP_COPP_API
__rc_ptr_counted_data_base::~__rc_ptr_counted_data_base
() noexcept {}
12
13
LIBCOPP_COPP_API
void
__rc_ptr_counted_data_base::throw_bad_weak_ptr
() {
14
#if defined(LIBCOPP_MACRO_ENABLE_EXCEPTION) && LIBCOPP_MACRO_ENABLE_EXCEPTION
15
throw
std::bad_weak_ptr();
16
#else
17
abort();
18
#endif
19
}
13
LIBCOPP_COPP_API
void
__rc_ptr_counted_data_base::throw_bad_weak_ptr
() {
…
}
20
21
}
// namespace memory
22
LIBCOPP_COPP_NAMESPACE_END
memory::__rc_ptr_counted_data_base::~__rc_ptr_counted_data_base
virtual LIBCOPP_COPP_API ~__rc_ptr_counted_data_base() noexcept
Definition
rc_ptr.cpp:11
memory::__rc_ptr_counted_data_base::throw_bad_weak_ptr
static LIBCOPP_COPP_API void throw_bad_weak_ptr()
Definition
rc_ptr.cpp:13
memory
Definition
allocator_ptr.h:13
rc_ptr.h
Generated by
1.9.8