Function group_by_ctx

Synopsis

#include <include/flecs/addons/cpp/mixins/query/builder_i.hpp>

Base & group_by_ctx(void *ctx, ecs_ctx_free_t ctx_free=nullptr)

Description

Specify context to be passed to group_by function.

Parameters

ctx - Context to pass to group_by function.

ctx_free - Function to cleanup context (called when query is deleted).

Source

Lines 117-121 in include/flecs/addons/cpp/mixins/query/builder_i.hpp.

Base& group_by_ctx(void *ctx, ecs_ctx_free_t ctx_free = nullptr) {
    m_desc->group_by_ctx = ctx;
    m_desc->group_by_ctx_free = ctx_free;
    return *this;
}