Skip to content

How to for_each with groupby? #1189

Answered by skypjack
vkensou asked this question in Q&A
Oct 30, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

As in:

struct clazz {
    int foo{3};
    // ...
};

Gimme all the entities for which foois equal to 3?
No, EnTT doesn't support it out of the box unless you use something like the reactive storage and keep track of the entities of interest by checking a runtime value like this.
However, it smells of an XY-problem to me.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@vkensou
Comment options

@skypjack
Comment options

Answer selected by vkensou
@vkensou
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
discussion it sounds interesting, let's discuss it
2 participants