diff --git a/common/include/pcl/point_cloud.h b/common/include/pcl/point_cloud.h index aac09ac6526..f0d01f27881 100644 --- a/common/include/pcl/point_cloud.h +++ b/common/include/pcl/point_cloud.h @@ -428,6 +428,14 @@ namespace pcl typedef boost::shared_ptr > Ptr; typedef boost::shared_ptr > ConstPtr; + // std container compatibility typedefs according to + // http://en.cppreference.com/w/cpp/concept/Container + typedef PointT value_type; + typedef PointT& reference; + typedef const PointT& const_reference; + typedef typename VectorType::difference_type difference_type; + typedef typename VectorType::size_type size_type; + // iterators typedef typename VectorType::iterator iterator; typedef typename VectorType::const_iterator const_iterator;