Point Cloud Library (PCL)  1.7.2
traits::has_field< PointT, Field > Struct Template Reference

Metafunction to check if a given point type has a given field. More...

#include <pcl/point_types.h>

+ Inheritance diagram for traits::has_field< PointT, Field >:

Detailed Description

template<typename PointT, typename Field>
struct traits::has_field< PointT, Field >

Metafunction to check if a given point type has a given field.

Example usage at run-time:

bool curvature_available = pcl::traits::has_field<PointT, pcl::fields::curvature>::value;

Example usage at compile-time:

BOOST_MPL_ASSERT_MSG ((pcl::traits::has_field<PointT, pcl::fields::label>::value),
POINT_TYPE_SHOULD_HAVE_LABEL_FIELD,
(PointT));

Definition at line 682 of file point_types.h.


The documentation for this struct was generated from the following file: