Struct has_sqlForDeletingByPrimaryKey

Synopsis

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

template <typename T>
struct has_sqlForDeletingByPrimaryKey

Description

No description yet.

Source

Lines 65-82 in orm_lib/inc/drogon/orm/Mapper.h. Line 67 in orm_lib/inc/drogon/orm/Mapper.h.

template <typename T>
struct has_sqlForDeletingByPrimaryKey
{
  private:
    using yes = std::true_type;
    using no = std::false_type;

    template <typename U>
    static auto test(int)
        -> decltype(U::sqlForDeletingByPrimaryKey().length(), yes());

    template <typename>
    static no test(...);

  public:
    static constexpr bool value =
        std::is_same<decltype(test<T>(0)), yes>::value;
};





Add Discussion as Guest

Log in to DocsForge