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

A concept that checks whether a type T (that should be a Mesh) has the Materials component (inherits from it). More...

#include <vclib/mesh/components/materials.h>

Concept definition

template<typename T>
concept vcl::comp::HasMaterials = std::derived_from<std::remove_cvref_t<T>, Materials>
A concept that checks whether a type T (that should be a Mesh) has the Materials component (inherits ...
Definition materials.h:398

Detailed Description

A concept that checks whether a type T (that should be a Mesh) has the Materials component (inherits from it).

The concept is satisfied if T is a class that inherits from vcl::comp::Materials, with any template arguments.

Template Parameters
TThe type to be tested for conformity to the HasMaterials.