Skip to content

Commit

Permalink
add unsigned index type
Browse files Browse the repository at this point in the history
  • Loading branch information
haritha-j committed Jun 18, 2020
1 parent 7004787 commit cf9f6d5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions common/include/pcl/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@ namespace pcl
using index_t = detail::int_type_t<detail::index_type_size, detail::index_type_signed>;
static_assert(!std::is_void<index_t>::value, "`index_t` can't have type `void`");

/**
* \brief Type used for an unsigned index in PCL
*
* Unsigned index that mirrors the type of the index_t
*/
using uindex_t = detail::int_type_t<detail::index_type_size, false>;

/**
* \brief Type used for indices in PCL
* \todo Remove with C++20
Expand Down

0 comments on commit cf9f6d5

Please sign in to comment.