Visual Computing Library
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/concepts/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:130
The HasVertexContainer concept is satisfied only if a container class provides the types and member f...
Definition vertex_container.h:44

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 line segment in n-dimensional space. The class is parameterized by a PointConc...
Definition segment.h:43

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.