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

HasVertices concepts is satisfied when at least one of its types is (or inherits from) a vcl::mesh::VertexContainer. It can be used both to check if a Mesh has vertices, or if in a list of types there is a VertexContainer. More...

#include <vclib/mesh/containers/vertex_container.h>

Concept definition

template<typename... Args>
HasVertices concepts is satisfied when at least one of its types is (or inherits from) a vcl::mesh::V...
Definition vertex_container.h:1267
A concept that checks whether a class has (inherits from) a VertexContainer class.
Definition vertex_container.h:1226

Detailed Description

HasVertices concepts is satisfied when at least one of its types is (or inherits from) a vcl::mesh::VertexContainer. It can be used both to check if a Mesh has vertices, or if in a list of types there is a VertexContainer.

In the following example, a MyMesh type can be instantiated only if one of its template Args is a VertexContainer:

template <typename... Args> requires HasVertices<Args...>
class MyMesh {
// ...
};
// ...
A class representing a box in N-dimensional space.
Definition box.h:46

To check if a type has (inherits from) VertexContainer:

// ...
}
Note
This concept does not check if a Mesh is a valid Mesh. To do that, use the MeshConcept.