dmd ~master (2023-11-01T14:17:50Z)
Dub
Repo
unique_ptr
core
stdcpp
memory
extern (
C
++)
struct
unique_ptr (
T
Deleter
=
default_delete
!
T
) {
this(this)
;
~this
();
unique_ptr
opAssign
(typeof(null) );
void
reset
(pointer p);
alias
pointer
=
ClassOrPtr
!
T
;
alias
element_type
=
T
;
alias
deleter_type
=
Deleter
;
this
(pointer ptr);
inout
(
pointer
)
get
();
bool
opCast
();
pointer
release
();
version
(
CppRuntime_Microsoft
)
inout
(
deleter_type
)
get_deleter
();
version
(!
CppRuntime_Microsoft
)
version
(
CppRuntime_Gcc
)
inout
(
deleter_type
)
get_deleter
();
version
(!
CppRuntime_Microsoft
)
version
(!
CppRuntime_Gcc
)
version
(
CppRuntime_Clang
)
inout
(
deleter_type
)
get_deleter
();
}
Constructors
this
this
(pointer ptr)
Destructor
~this
~this
()
Postblit
this(this)
this(this)
Members
Aliases
deleter_type
alias
deleter_type
=
Deleter
element_type
alias
element_type
=
T
pointer
alias
pointer
=
ClassOrPtr
!
T
Functions
get
inout
(
pointer
)
get
()
get_deleter
inout
(
deleter_type
)
get_deleter
()
get_deleter
inout
(
deleter_type
)
get_deleter
()
get_deleter
inout
(
deleter_type
)
get_deleter
()
opAssign
unique_ptr
opAssign
(typeof(null) )
opCast
bool
opCast
()
release
pointer
release
()
reset
void
reset
(pointer p)
Meta
Source
See Implementation
core
stdcpp
memory
functions
make_unique
structs
default_delete
unique_ptr