Loading [MathJax]/extensions/TeX/AMSsymbols.js
Radium Engine
1.5.20
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
i
l
m
n
o
p
q
r
s
t
v
z
Functions
a
c
d
f
g
i
l
m
n
o
p
q
r
s
t
v
Variables
Typedefs
Enumerations
Enumerator
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
i
m
s
v
w
Typedefs
a
b
c
f
g
i
k
o
r
s
t
v
Enumerations
Enumerator
Related Symbols
Files
File List
File Members
All
Macros
▼
Radium Engine
►
Radium Basics
►
Radium Concepts
►
Developer manual
►
Licenses
Todo List
Deprecated List
►
Namespaces
►
Classes
▼
Files
▼
File List
▼
src
▼
Core
►
Animation
►
Asset
▼
Containers
AdjacencyList.cpp
AdjacencyList.hpp
AlignedAllocator.hpp
AlignedStdVector.hpp
Grid.hpp
Iterators.hpp
MakeShared.hpp
Tex.hpp
VariableSet.cpp
VariableSet.hpp
VariableSetEnumManagement.cpp
VariableSetEnumManagement.hpp
VectorArray.hpp
►
Geometry
►
Math
►
Resources
►
Tasks
►
Utils
CoreMacros.hpp
pch.hpp
RaCore.hpp
Types.hpp
►
Engine
►
Gui
►
Headless
►
IO
►
PluginBase
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
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
}
17
inline
std::shared_ptr<T>
make_shared
( Args&&... args ) {
…
}
28
}
// namespace Core
29
}
// namespace Ra
std::forward
T forward(T... args)
std::make_shared
T make_shared(T... args)
Ra::Core::make_shared
std::shared_ptr< T > make_shared(Args &&... args)
Definition
MakeShared.hpp:17
Ra
hepler function to manage enum as underlying types in VariableSet
Definition
Cage.cpp:3
std::shared_ptr
src
Core
Containers
MakeShared.hpp
Generated by
1.12.0