Skip to content
Snippets Groups Projects
Commit c060e1fd authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Added operator<< for Subrange formatting

No idea why it is not needed in the develop branch...
parent 23d4e080
No related branches found
No related tags found
1 merge request!10Periodic BC in distributed grid
......@@ -12,6 +12,8 @@
#pragma once
#include <ostream>
#include <TNL/Assert.h>
#include <TNL/String.h>
#include <TNL/param-types.h>
......@@ -119,5 +121,12 @@ protected:
Index end = 0;
};
// due to formatting in TNL::Assert
template< typename Index >
std::ostream& operator<<( std::ostream& str, const Subrange< Index >& range )
{
return str << Subrange< Index >::getType() << "( " << range.getBegin() << ", " << range.getEnd() << " )";
}
} // namespace DistributedContainers
} // namespace TNL
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