ECSTASY
All in the name
Loading...
Searching...
No Matches
ecstasy::query::ConstQueryableObject Concept Reference

Defines a type that can be queried in a const context. More...

#include <Queryable.hpp>

Concept definition

template<typename Q>
concept ecstasy::query::ConstQueryableObject = QueryableObject<Q> && requires(const Q &cqueryable, std::size_t index) {
typename Q::ConstQueryData;
{ cqueryable.getQueryData(index) } -> std::same_as<typename Q::ConstQueryData>;
}
Defines a type that can be queried in a const context.
Definition Queryable.hpp:68
Defines a type that can be queried.
Definition Queryable.hpp:42

Detailed Description

Defines a type that can be queried in a const context.

In addition to the QueryableObject concept, a const queryable object must have:

  • An internal ConstQueryData type, which is the data stored in the queryable.
  • A const version of the method getQueryData returning ConstQueryData object.
Note
This concept is a subset of QueryableObject.
Warning
The type Q is not expected to be const qualified.
Template Parameters
QEvaluated type.
Author
Andréas Leroux (andre.nosp@m.as.l.nosp@m.eroux.nosp@m.@epi.nosp@m.tech..nosp@m.eu)
Since
1.0.0 (2024-04-03)

Definition at line 68 of file Queryable.hpp.