MeshLib Documentation
Loading...
Searching...
No Matches
MRMeta.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <memory>
4
5
// Metaprogramming helpers.
6
7
namespace
MR::Meta
8
{
9
10
template
<
typename
T>
11
struct
SharedPtrTraits
12
{
13
static
constexpr
bool
isSharedPtr
=
false
;
14
using
elemType
= T;
15
};
16
template
<
typename
T>
17
struct
SharedPtrTraits
<std::shared_ptr<T>>
18
{
19
static
constexpr
bool
isSharedPtr
=
true
;
20
using
elemType
= T;
21
};
22
23
}
MR::Meta
Definition
MRMeta.h:8
MR::Meta::SharedPtrTraits
Definition
MRMeta.h:12
MR::Meta::SharedPtrTraits::elemType
T elemType
Definition
MRMeta.h:14
MR::Meta::SharedPtrTraits::isSharedPtr
static constexpr bool isSharedPtr
Definition
MRMeta.h:13
MeshLib
source
MRMesh
MRMeta.h
Generated by
1.11.0