27 lines
591 B
C++
27 lines
591 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include <type_traits>
|
|
|
|
#include "MetasoundNodeInterface.h"
|
|
|
|
namespace Metasound
|
|
{
|
|
template <typename U>
|
|
class TIsCreateNodeClassMetadataDeclared
|
|
{
|
|
private:
|
|
template<typename T, T>
|
|
struct Helper;
|
|
|
|
template<typename T>
|
|
static uint8 Check(Helper<FNodeClassMetadata(*)(), &T::CreateNodeClassMetadata>*);
|
|
|
|
template<typename T> static uint16 Check(...);
|
|
|
|
public:
|
|
|
|
// If the function exists, then "Value" is true. Otherwise "Value" is false.
|
|
static constexpr bool Value = sizeof(Check<U>(0)) == sizeof(uint8);
|
|
};
|
|
}
|