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
7namespace MR::Meta
8{
9
10template <typename T>
12{
13 static constexpr bool isSharedPtr = false;
14 using elemType = T;
15};
16template <typename T>
17struct SharedPtrTraits<std::shared_ptr<T>>
18{
19 static constexpr bool isSharedPtr = true;
20 using elemType = T;
21};
22
23}
Definition MRMeta.h:8
Definition MRMeta.h:12
T elemType
Definition MRMeta.h:14
static constexpr bool isSharedPtr
Definition MRMeta.h:13