MeshLib Documentation
Loading...
Searching...
No Matches
MRNoDefInit.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
MRMeshFwd.h
"
4
5
namespace
MR
6
{
7
8
// this class is similar to T, but does not make default initialization of the fields for best performance
9
template
<
typename
T>
10
struct
NoDefInit
: T
11
{
12
constexpr
NoDefInit
() noexcept : T(
noInit
) {}
13
using
T::operator=;
14
};
15
16
}
// namespace MR
MRMeshFwd.h
MR
Definition
MRCameraOrientationPlugin.h:8
MR::noInit
constexpr NoInit noInit
Definition
MRMesh/MRMeshFwd.h:57
MR::NoDefInit
Definition
MRNoDefInit.h:11
MR::NoDefInit::NoDefInit
constexpr NoDefInit() noexcept
Definition
MRNoDefInit.h:12
MeshLib
source
MRMesh
MRNoDefInit.h
Generated by
1.11.0