Struct FunctionTraits< ReturnType(*)(Arguments...)>

Synopsis

#include <orm_lib/inc/drogon/orm/FunctionTraits.h>

template <typename ReturnType, typename... Arguments>
struct FunctionTraits<ReturnType (*)(Arguments...)>

Description

No description yet.

Inheritance

Decsendents: FunctionTraits< ReturnType(ClassType::*)(Arguments...) const >, FunctionTraits< ReturnType(ClassType::*)(Arguments...)>, FunctionTraits< ReturnType(*)(bool, Arguments...)>

Source

Lines 98-112 in orm_lib/inc/drogon/orm/FunctionTraits.h. Line 100 in orm_lib/inc/drogon/orm/FunctionTraits.h.

template <typename ReturnType, typename... Arguments>
struct FunctionTraits<ReturnType (*)(Arguments...)>
{
    using result_type = ReturnType;

    template <std::size_t Index>
    using argument =
        typename std::tuple_element<Index, std::tuple<Arguments...>>::type;

    static const std::size_t arity = sizeof...(Arguments);

    // static const bool isSqlCallback = false;
    static const bool isSqlCallback = true;
    static const bool isStepResultCallback = true;
};





Add Discussion as Guest

Log in to DocsForge