SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
common
TypeTraits.h
1
//=========================================================================
2
// Copyright (c) Kitware, Inc.
3
// All rights reserved.
4
// See LICENSE.txt for details.
5
//
6
// This software is distributed WITHOUT ANY WARRANTY; without even
7
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8
// PURPOSE. See the above copyright notice for more information.
9
//=========================================================================
10
11
#ifndef smtk_common_TypeTraits_h
12
#define smtk_common_TypeTraits_h
13
14
#include <type_traits>
15
16
namespace
smtk
17
{
18
namespace
common
19
{
20
21
// Added in C++17
22
template
<
class
...>
23
using
void_t = void;
24
25
// Added in C++20
26
template
<
class
T>
27
struct
remove_cvref
28
{
29
using
type =
typename
std::remove_cv<typename std::remove_reference<T>::type>::type;
30
};
31
32
}
// namespace common
33
}
// namespace smtk
34
35
#endif // smtk_common_TypeTraits_h
smtk
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition:
doc.h:33
smtk::common::remove_cvref
Definition:
TypeTraits.h:27
Generated by
1.8.17