CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
make_const_ref.h
1
2#pragma once
3
4#include <detail.h>
5
6#include <type_traits>
7
8namespace System {
9
11class String;
12template <class T> class SmartPtr;
13
15template <typename T>
16struct MakeConstRef : std::conditional<System::detail::is_a<T, System::SmartPtr>::value || std::is_same<System::String, T>::value, const T&, T> {};
17
19template< class T >
21
22}
Definition: db_command.h:9
typename MakeConstRef< T >::type MakeConstRef_t
Helper type for MakeConstRef modifier.
Definition: make_const_ref.h:20
Trait to make generic type "const reference" if it is String or a SmartPtr<> type.
Definition: make_const_ref.h:16