Function operator>>

Summary

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

(1) template <typename CallbackType, typename traits = FunctionTraits<CallbackType>>
    std::enable_if< traits::isExceptCallback &&traits::isPtr, self >::type & operator>>(CallbackType &&callback)

(2) template <typename CallbackType, typename traits = FunctionTraits<CallbackType>>
    std::enable_if< traits::isExceptCallback &&!traits::isPtr, self >::type & operator>>(CallbackType &&callback)

(3) template <typename CallbackType, typename traits = FunctionTraits<CallbackType>>
    std::enable_if< traits::isSqlCallback, self >::type & operator>>(CallbackType &&callback)

Function overload

Synopsis

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

template <typename CallbackType, typename traits = FunctionTraits<CallbackType>>
std::enable_if< traits::isExceptCallback &&traits::isPtr, self >::type & operator>>(CallbackType &&callback)

Description

No description yet.

Source

Lines 323-333 in orm_lib/inc/drogon/orm/SqlBinder.h.

template <typename CallbackType,
          typename traits = FunctionTraits<CallbackType>>
typename std::enable_if<traits::isExceptCallback && traits::isPtr,
                        self>::type &
operator>>(CallbackType &&callback)
{
    // LOG_DEBUG << "ptr callback";
    isExceptionPtr_ = true;
    exceptionPtrCallback_ = std::forward<CallbackType>(callback);
    return *this;
}

Synopsis

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

template <typename CallbackType, typename traits = FunctionTraits<CallbackType>>
std::enable_if< traits::isExceptCallback &&!traits::isPtr, self >::type & operator>>(CallbackType &&callback)

Description

No description yet.

Source

Lines 335-344 in orm_lib/inc/drogon/orm/SqlBinder.h.

template <typename CallbackType,
          typename traits = FunctionTraits<CallbackType>>
typename std::enable_if<traits::isExceptCallback && !traits::isPtr,
                        self>::type &
operator>>(CallbackType &&callback)
{
    isExceptionPtr_ = false;
    exceptionCallback_ = std::forward<CallbackType>(callback);
    return *this;
}

Synopsis

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

template <typename CallbackType, typename traits = FunctionTraits<CallbackType>>
std::enable_if< traits::isSqlCallback, self >::type & operator>>(CallbackType &&callback)

Description

No description yet.

Source

Lines 346-355 in orm_lib/inc/drogon/orm/SqlBinder.h.

template <typename CallbackType,
          typename traits = FunctionTraits<CallbackType>>
typename std::enable_if<traits::isSqlCallback, self>::type &operator>>(
    CallbackType &&callback)
{
    callbackHolder_ = std::shared_ptr<CallbackHolderBase>(
        new CallbackHolder<CallbackType>(
            std::forward<CallbackType>(callback)));
    return *this;
}





Add Discussion as Guest

Log in