Visual Computing Library
Loading...
Searching...
No Matches
vcl::comp::ComponentConcept Concept Reference

The ComponentConcept is evaluated to true whenever the type T is a valid component, i.e., it has a static constexpr member COMPONENT_ID of type unsigned int. More...

#include <vclib/concepts/mesh/components/component.h>

Concept definition

template<typename T>
concept vcl::comp::ComponentConcept = requires {
{ RemoveRef<T>::COMPONENT_ID } -> std::same_as<const uint&>;
}
The ComponentConcept is evaluated to true whenever the type T is a valid component,...
Definition component.h:44

Detailed Description

The ComponentConcept is evaluated to true whenever the type T is a valid component, i.e., it has a static constexpr member COMPONENT_ID of type unsigned int.

The COMPONENT_ID is used to identify the component type in the mesh or in the mesh element. Its value should be one of the values defined in the vcl::CompId enum.

Template Parameters
TThe type to be evaluated.