#ifndef SCITBX_INDEXED_VALUE_H #define SCITBX_INDEXED_VALUE_H #include namespace scitbx { template > struct indexed_value { typedef IndexType index_type; typedef ValueType value_type; indexed_value() {} indexed_value(index_type const& i, value_type const& v) : index(i), value(v) {} bool operator<( indexed_value const& rhs) const { return SortCmpFunctor()(this->value, rhs.value); } index_type index; value_type value; }; } // namespace scitbx #endif // SCITBX_INDEXED_VALUE_H