Loading [MathJax]/extensions/TeX/AMSmath.js
Radium Engine
1.5.0
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
c
d
f
g
i
l
m
n
o
p
q
r
s
t
v
Functions
a
c
d
f
g
i
l
n
o
p
q
r
s
t
v
Variables
Typedefs
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
b
d
f
h
i
m
n
s
t
v
w
Typedefs
a
b
c
f
g
i
k
o
r
s
t
u
v
Enumerations
Enumerator
Related Functions
Files
File List
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
MakeShared.hpp
1
#pragma once
2
3
#include <memory>
4
5
namespace
Ra
{
6
namespace
Core {
7
16
template
<
typename
T,
class
... Args>
17
inline
std::shared_ptr<T> make_shared( Args&&... args ) {
18
#if 0
// use std::make_shared
19
20
return
std::make_shared<T>(args...);
21
22
#else
// use new and shared_ptr constructor.
23
24
return
std::shared_ptr<T>(
new
T( std::forward<Args>( args )... ) );
25
26
#endif
27
}
28
}
// namespace Core
29
}
// namespace Ra
Ra
Definition:
Cage.cpp:3
src
Core
Containers
MakeShared.hpp
Generated on Wed Apr 5 2023 15:07:30 for Radium Engine by
1.9.1