Skip to content
Snippets Groups Projects
Unverified Commit ba3f3be6 authored by Tomáš Pecka's avatar Tomáš Pecka
Browse files

Allow printing and comparing of vector<ulong>

parent c7705b00
No related branches found
No related tags found
1 merge request!107Dev tp
/*
* VectorCompare.cpp
*
* Created on: Oct 4, 2019
* Author: Tomas Pecka
*/
#include "VectorCompare.h"
#include <registration/AlgoRegistration.hpp>
namespace {
auto VectorCompareULI = registration::AbstractRegister < compare::VectorCompare, bool, const ext::vector < unsigned long > &, const ext::vector < unsigned long > & > ( compare::VectorCompare::compare );
} /* namespace */
/*
* VectorCompare.h
*
* Created on: Oct 4, 2019
* Author: Tomas Pecka
*/
#ifndef VECTOR_COMPARE_H_
#define VECTOR_COMPARE_H_
#include <alib/vector>
namespace compare {
class VectorCompare {
public:
template < class T >
static bool compare ( const ext::vector < T > & a, const ext::vector < T > & b ) {
return a == b;
}
};
} /* namespace compare */
#endif /* VECTOR_COMPARE_H_ */
...@@ -104,6 +104,7 @@ public: ...@@ -104,6 +104,7 @@ public:
   
abstraction::ValuePrinterRegistry::registerValuePrinter < ext::vector < object::Object > > ( ); abstraction::ValuePrinterRegistry::registerValuePrinter < ext::vector < object::Object > > ( );
abstraction::ValuePrinterRegistry::registerValuePrinter < ext::vector < unsigned > > ( ); abstraction::ValuePrinterRegistry::registerValuePrinter < ext::vector < unsigned > > ( );
abstraction::ValuePrinterRegistry::registerValuePrinter < ext::vector < unsigned long > > ( );
abstraction::ValuePrinterRegistry::registerValuePrinter < ext::vector < ext::pair < object::Object, object::Object > > > ( ); abstraction::ValuePrinterRegistry::registerValuePrinter < ext::vector < ext::pair < object::Object, object::Object > > > ( );
   
abstraction::ValuePrinterRegistry::registerValuePrinter < ext::pair < ext::vector < object::Object >, double > > ( ); abstraction::ValuePrinterRegistry::registerValuePrinter < ext::pair < ext::vector < object::Object >, double > > ( );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment