.. index:: pair: struct; DataPackPointerComparator .. _doxid-struct_data_pack_pointer_comparator: struct DataPackPointerComparator ================================ .. toctree:: :hidden: Overview ~~~~~~~~ Custom comparator functor used by sets of :ref:`DataPack ` shared pointers. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct DataPackPointerComparator { // typedefs typedef std::true_type :target:`is_transparent`; // methods bool :target:`operator ()` ( const std::shared_ptr`>& lhs, const std::shared_ptr`>& rhs ) const; bool :target:`operator ()` ( const std::shared_ptr`>& lhs, const :ref:`DataPackIdentifier`& rhs ) const; bool :target:`operator ()` ( const :ref:`DataPackIdentifier`& lhs, const std::shared_ptr`>& rhs ) const; }; .. _details-struct_data_pack_pointer_comparator: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Custom comparator functor used by sets of :ref:`DataPack ` shared pointers. This is a custom comparator that is used in all sets that store shared pointers to DataPacks. These sets should compare the content of the pointers, not the pointers themselves. The comparator uses the ID data of the DataPacks to decide if two pointers are equal.