Struct IsPlugin

Synopsis

#include <lib/inc/drogon/plugins/Plugin.h>

template <typename T>
struct IsPlugin

Description

No description yet.

Methods

test

Source

Lines 108-124 in lib/inc/drogon/plugins/Plugin.h. Line 110 in lib/inc/drogon/plugins/Plugin.h.

template <typename T>
struct IsPlugin
{
    using TYPE =
        typename std::remove_cv<typename std::remove_reference<T>::type>::type;

    static int test(void *)
    {
        return 0;
    }
    static char test(PluginBase *)
    {
        return 0;
    }
    static constexpr bool value =
        (sizeof(test((TYPE *)nullptr)) == sizeof(char));
};





Add Discussion as Guest

Log in to DocsForge