Skip to content
Flecs v4.1
impl.hpp
Go to the documentation of this file.
1/**
2 * @file addons/cpp/mixins/component/impl.hpp
3 * @brief Component mixin implementation.
4 */
5
6#pragma once
7
8namespace flecs {
9
10template <typename T, typename... Args>
11inline flecs::component<T> world::component(Args &&... args) const {
12 return flecs::component<T>(world_, FLECS_FWD(args)...);
13}
14
15template <typename... Args>
16inline flecs::untyped_component world::component(Args &&... args) const {
17 return flecs::untyped_component(world_, FLECS_FWD(args)...);
18}
19
20} // namespace flecs
flecs::component< T > component(Args &&... args) const
Find or register a component.
Definition impl.hpp:11
Component class.
Untyped component class.
world_t * world_
Pointer to the underlying C world.
Definition world.hpp:1009