mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-02-13 05:49:13 -06:00
27 lines
654 B
C++
27 lines
654 B
C++
#pragma once
|
|
#ifndef ORM_TINY_TINYCONCEPTS_HPP
|
|
#define ORM_TINY_TINYCONCEPTS_HPP
|
|
|
|
#include "orm/macros/systemheader.hpp"
|
|
TINY_SYSTEM_HEADER
|
|
|
|
#include <concepts>
|
|
|
|
#include "orm/macros/commonnamespace.hpp"
|
|
|
|
TINYORM_BEGIN_COMMON_NAMESPACE
|
|
|
|
namespace Orm::Tiny
|
|
{
|
|
|
|
/*! Concept for Model's AllRelations template parameter, AllRelations can not
|
|
contain actual model type declared in the Derived template parameter. */
|
|
template<typename Derived, typename ...AllRelations>
|
|
concept AllRelationsConcept = (!std::same_as<Derived, AllRelations> && ...);
|
|
|
|
} // namespace Orm::Tiny
|
|
|
|
TINYORM_END_COMMON_NAMESPACE
|
|
|
|
#endif // ORM_TINY_TINYCONCEPTS_HPP
|